muistox/config/urls.py

14 lines
462 B
Python
Raw Normal View History

2024-12-28 14:14:21 +02:00
from django.conf import settings
from django.conf.urls.static import static
2024-12-28 12:01:07 +02:00
from django.contrib import admin
2024-12-28 12:21:29 +02:00
from django.urls import include, path
2024-12-28 12:01:07 +02:00
urlpatterns = [
2025-01-15 09:48:34 +02:00
path('', include(('gallery.urls', 'gallery'), namespace='gallery')),
2024-12-28 12:01:07 +02:00
path('admin/', admin.site.urls),
]
2024-12-28 14:14:21 +02:00
if settings.DEBUG:
2025-01-05 17:26:09 +02:00
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)