from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, re_path, include urlpatterns = [ path("admin/", admin.site.urls), path("nested_admin/", include("nested_admin.urls")), path("", include("outbo.apps.core.urls")), path("", include("outbo.apps.authentication.urls", namespace="authentication")), path("", include("outbo.apps.organizations.urls", namespace="organizations")), path("", include("outbo.apps.projects.urls", namespace="projects")), path("", include("outbo.apps.products.urls", namespace="products")), path("", include("outbo.apps.photobriefing.urls", namespace="photobriefing")), path( "", include("outbo.apps.final_photobriefing.urls", namespace="final_photobriefing"), ), path("", include("outbo.apps.activity_log.urls", namespace="activity_log")), ] if settings.DEBUG: urlpatterns += [re_path(r"^silk/", include("silk.urls", namespace="silk"))] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)