|
@ -1,5 +1,4 @@ |
|
|
from django.urls import path, include |
|
|
from django.urls import path, include |
|
|
from django.conf.urls.i18n import i18n_patterns |
|
|
|
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns |
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns |
|
|
from django.contrib import admin |
|
|
from django.contrib import admin |
|
|
from django.conf import settings |
|
|
from django.conf import settings |
|
@ -9,30 +8,32 @@ from django.urls import path # As per docs. |
|
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
urlpatterns = [ |
|
|
|
|
|
|
|
|
# Admin a nastroje |
|
|
# Admin a nastroje |
|
|
path('admin/', admin.site.urls), # NOQA |
|
|
path('admin/', admin.site.urls), # NOQA |
|
|
path('ckeditor/', include('ckeditor_uploader.urls')), |
|
|
path('ckeditor/', include('ckeditor_uploader.urls')), |
|
|
path('autocomplete/', include('autocomplete_light.urls')), |
|
|
path('autocomplete/', include('autocomplete_light.urls')), |
|
|
|
|
|
|
|
|
# Seminarova aplikace (ma vlastni podadresare) |
|
|
# Seminarova aplikace (ma vlastni podadresare) |
|
|
path('', include('seminar.urls')), |
|
|
path('', include('seminar.urls')), |
|
|
|
|
|
|
|
|
# Korekturovaci aplikace (ma vlastni podadresare) |
|
|
# Korekturovaci aplikace (ma vlastni podadresare) |
|
|
path('', include('korektury.urls')), |
|
|
path('', include('korektury.urls')), |
|
|
|
|
|
|
|
|
# Prednaskova aplikace (ma vlastni podadresare) |
|
|
# Prednaskova aplikace (ma vlastni podadresare) |
|
|
path('', include('prednasky.urls')), |
|
|
path('', include('prednasky.urls')), |
|
|
|
|
|
|
|
|
# Comments (interni i verejne) |
|
|
# Comments (interni i verejne) |
|
|
path('comments_dj/', include('django_comments.urls')), |
|
|
path('comments_dj/', include('django_comments.urls')), |
|
|
path('comments_fl/', include('fluent_comments.urls')), |
|
|
path('comments_fl/', include('fluent_comments.urls')), |
|
|
|
|
|
|
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
# This is only needed when using runserver. |
|
|
# This is only needed when using runserver. |
|
|
if settings.DEBUG: |
|
|
if settings.DEBUG: |
|
|
urlpatterns += [ |
|
|
import debug_toolbar |
|
|
path('media/<path:path>', views.static.serve, # NOQA |
|
|
urlpatterns += [ |
|
|
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), |
|
|
path('media/<path:path>', views.static.serve, # NOQA |
|
|
] |
|
|
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), |
|
|
urlpatterns += staticfiles_urlpatterns() |
|
|
path('__debug__/', include(debug_toolbar.urls)), |
|
|
|
|
|
] |
|
|
|
|
|
urlpatterns += staticfiles_urlpatterns() |
|
|