2021-08-28 19:52:07 +02:00
|
|
|
import debug_toolbar
|
2021-08-22 20:10:29 +02:00
|
|
|
from django.conf.urls.static import static
|
|
|
|
from django.contrib import admin
|
|
|
|
from django.urls import path, include
|
|
|
|
|
2021-08-29 22:09:22 +02:00
|
|
|
from common import views
|
2021-08-22 20:10:29 +02:00
|
|
|
from rpg_notes import settings
|
|
|
|
|
|
|
|
urlpatterns = [
|
2021-08-29 16:45:40 +02:00
|
|
|
path('', include('django.contrib.auth.urls')),
|
2021-08-22 20:10:29 +02:00
|
|
|
path('admin/', admin.site.urls),
|
2021-08-29 22:09:22 +02:00
|
|
|
path('character/', include("characters.urls")),
|
|
|
|
path('day/', include("days.urls")),
|
2021-09-15 16:51:43 +02:00
|
|
|
path('location/', include("locations.urls")),
|
2021-08-29 22:09:22 +02:00
|
|
|
path('loot/', include("loot.urls")),
|
|
|
|
path('', include("campaigns.urls"))
|
2021-08-22 20:10:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
2021-08-28 19:52:07 +02:00
|
|
|
urlpatterns.append(path('__debug__/', include(debug_toolbar.urls)), )
|
2021-08-22 20:10:29 +02:00
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
|
|
urlpatterns.append(path("css", views.debug_css, name="css"))
|
|
|
|
urlpatterns.append(path("css_sourcemap", views.debug_css_sourcemap, name="css_sourcemap"))
|
2021-09-11 19:12:16 +02:00
|
|
|
|
|
|
|
handler500 = "common.views.handler500"
|