You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.2 KiB

from django.urls import path, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
from django.conf import settings
from django.views.generic.base import TemplateView
from django import views
from django.urls import path # As per docs.
from .routers import router
urlpatterns = [
# Admin a nastroje
path('admin/', admin.site.urls), # NOQA
path('ckeditor/', include('ckeditor_uploader.urls')),
# Seminarova aplikace (ma vlastni podadresare)
path('', include('seminar.urls')),
# Korekturovaci aplikace (ma vlastni podadresare)
path('', include('korektury.urls')),
# Prednaskova aplikace (ma vlastni podadresare)
path('', include('prednasky.urls')),
# Comments (interni i verejne)
path('comments_dj/', include('django_comments.urls')),
path('comments_fl/', include('fluent_comments.urls')),
# REST API
path('api/', include(router.urls)),
]
# This is only needed when using runserver.
if settings.DEBUG:
import debug_toolbar
urlpatterns += [
path('media/<path:path>', views.static.serve, # NOQA
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
path('__debug__/', include(debug_toolbar.urls)),
]
urlpatterns += staticfiles_urlpatterns()