-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurls.py
More file actions
34 lines (27 loc) · 1.01 KB
/
urls.py
File metadata and controls
34 lines (27 loc) · 1.01 KB
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
29
30
31
32
33
34
from django.contrib import admin
from django.urls import path, re_path, include
from django.conf.urls.static import static
from django.conf import settings
from filebrowser.sites import site
from back_office import views as error_handler
urlpatterns = [
path('jet', include('jet.urls', 'jet')), # Django JET URLS
path('admin/', admin.site.urls),
re_path(r'^', include('back_office.urls')),
re_path(r'^', include('core_blog.urls')),
re_path(r'^tinymce/', include('tinymce.urls')),
re_path(r'^admin/filebrowser/', site.urls),
]
if settings.DEBUG:
urlpatterns += static(
settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
)
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
re_path(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns
handler400 = error_handler.BadRequestView.as_view()
handler403 = error_handler.PermissionDeniedView.as_view()
handler404 = error_handler.PageNotFoundView.as_view()
handler500 = error_handler.ServerErrorView.as_view()