2020-09-22 15:00:28 +00:00
|
|
|
from django.conf import settings
|
2020-07-05 12:04:24 +00:00
|
|
|
from django.conf.urls import include, url
|
2020-07-05 11:57:38 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
from django.urls import path
|
2020-07-05 12:04:24 +00:00
|
|
|
from django.views.generic import TemplateView
|
2020-07-05 11:57:38 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-07-05 12:04:24 +00:00
|
|
|
url(r'^api/', include('django_etebase.urls')),
|
|
|
|
url(r'^admin/', admin.site.urls),
|
|
|
|
|
|
|
|
path('', TemplateView.as_view(template_name='success.html')),
|
2020-07-05 11:57:38 +00:00
|
|
|
]
|
2020-09-22 15:00:28 +00:00
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
urlpatterns += [
|
|
|
|
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
|
|
|
]
|