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 = [
|
|
|
|
path('admin/', admin.site.urls),
|
2025-01-20 21:21:09 +02:00
|
|
|
path('', include(('gallery.urls', 'gallery'), namespace='gallery')),
|
2024-12-28 12:01:07 +02:00
|
|
|
]
|
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)
|