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 )