2017-03-20 07:38:44 +01:00
|
|
|
"""django-helpdesk demodesk URL Configuration
|
|
|
|
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
|
|
https://docs.djangoproject.com/en/1.10/topics/http/urls/
|
|
|
|
Examples:
|
|
|
|
Function views
|
|
|
|
1. Add an import: from my_app import views
|
|
|
|
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
|
|
|
|
Class-based views
|
|
|
|
1. Add an import: from other_app.views import Home
|
|
|
|
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
|
|
|
|
Including another URLconf
|
|
|
|
1. Import the include() function: from django.conf.urls import url, include
|
|
|
|
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
|
|
|
|
"""
|
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls.static import static
|
2022-07-22 03:26:41 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
from django.urls import include, path
|
2017-03-20 07:38:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
# The following uses the static() helper function,
|
|
|
|
# which only works when in development mode (using DEBUG).
|
|
|
|
# For a real deployment, you'd have to properly configure a media server.
|
|
|
|
# For more information, see:
|
|
|
|
# https://docs.djangoproject.com/en/1.10/howto/static-files/
|
|
|
|
|
|
|
|
urlpatterns = [
|
2022-03-17 03:29:09 +01:00
|
|
|
path('admin/', admin.site.urls),
|
|
|
|
path('', include('helpdesk.urls', namespace='helpdesk')),
|
2022-04-23 08:23:51 +02:00
|
|
|
path('api/auth/', include('rest_framework.urls', namespace='rest_framework'))
|
2017-03-20 07:38:44 +01:00
|
|
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|