Add ability to configure local_urls

This commit is contained in:
Timothy Hobbs 2023-10-23 14:00:03 +02:00
parent 7e0a335684
commit d1cce7caad
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,2 @@
local_urlpatterns = [
]

View File

@ -2,10 +2,12 @@ from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from .local_urls import local_urlpatterns
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('helpdesk.urls', namespace='helpdesk')),
path('api/auth/', include('rest_framework.urls', namespace='rest_framework'))
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + local_urlpatterns