api should stay mandatory

This commit is contained in:
Pierre-antoine Comby 2020-03-09 11:48:39 +01:00
parent 30fb311b2e
commit 7d616eb1c9
1 changed files with 1 additions and 6 deletions

View File

@ -21,6 +21,7 @@ urlpatterns = [
path('admin/doc/', include('django.contrib.admindocs.urls')), path('admin/doc/', include('django.contrib.admindocs.urls')),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('logs/', include('logs.urls')), path('logs/', include('logs.urls')),
path('api/', include('api.urls')),
] ]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
@ -45,9 +46,3 @@ if "debug_toolbar" in settings.INSTALLED_APPS:
urlpatterns = [ urlpatterns = [
path('__debug__/', include(debug_toolbar.urls)), path('__debug__/', include(debug_toolbar.urls)),
] + urlpatterns ] + urlpatterns
if "api" in settings.INSTALLED_APPS:
# Include Django REST API
urlpatterns += [
path('api/', include('api.urls')),
]