-
Notifications
You must be signed in to change notification settings - Fork 140
/
urls.py
43 lines (41 loc) · 1.07 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from viewflow.contrib.admin import Admin
from viewflow.contrib.auth import AuthViewset
from viewflow.urls import Site, Application
from ..atlas.viewset import AtlasApp
from ..staff.urls import StaffApp
from ..tasks.viewsets import (
TaskViewset,
ProjectViewset,
CategoryViewset,
SubCategoryViewset,
)
from ..sales.urls import SalesApp
site = Site(
title="CRUD 101 Demo",
primary_color="#3949ab",
secondary_color="#5c6bc0",
viewsets=[
AtlasApp(),
StaffApp(),
Application(
app_name="tasks",
title="Tasks",
icon="tasks",
viewsets=[
CategoryViewset(),
SubCategoryViewset(),
ProjectViewset(),
TaskViewset(),
],
),
SalesApp(),
Admin(),
],
)
urlpatterns = [
path("", site.urls),
path("accounts/", AuthViewset().urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)