1
0
Fork 0
IdreXyz/idre/urls.py
2023-09-14 22:38:52 +02:00

29 lines
575 B
Python

from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from idre.views import about_view
import label.urls
admin.autodiscover()
urlpatterns = [
path("about/", about_view, name="about"),
path("admin/", admin.site.urls),
*label.urls.urlpatterns,
]
if settings.DEBUG:
urlpatterns += static(
settings.STATIC_URL,
document_root=settings.STATIC_ROOT
)
urlpatterns += static(
settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT
)