mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-24 17:04:25 +01:00
Add ability to configure local_urls
This commit is contained in:
parent
7e0a335684
commit
d1cce7caad
2
standalone/config/local_urls.py
Normal file
2
standalone/config/local_urls.py
Normal file
@ -0,0 +1,2 @@
|
||||
local_urlpatterns = [
|
||||
]
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user