-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathurls.py
More file actions
28 lines (20 loc) · 975 Bytes
/
urls.py
File metadata and controls
28 lines (20 loc) · 975 Bytes
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
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='frontpage.html'), name='home'),
# Django Admin
url(r'^admin/', include(admin.site.urls)),
url(r'^grappelli/', include('grappelli.urls')),
# Django web-based auth views (login, logout, password change/reset)
url('^', include('django.contrib.auth.urls')),
# REST Auth
# http://django-rest-auth.readthedocs.org/en/latest/api_endpoints.html
url(r'^api/rest-auth/', include('rest_auth.urls')),
# Django REST Framework API browser auth views, for dev/test only
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# Swagger API docs for REST Framework
url(r'^docs/', include('rest_framework_swagger.urls')),
# Django REST Framework API views
url(r'^api/v1', include('backend.urls', namespace='v1')),
]