You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
927 B
26 lines
927 B
"""
|
|
URL configuration for Dovoodi domain
|
|
This configuration is loaded when accessing from dovodi.* or dovoodi.* domains
|
|
"""
|
|
from django.urls import path, include
|
|
from django.conf.urls.i18n import i18n_patterns
|
|
from config.urls import urlpatterns as base_urlpatterns, swagger_urlpatterns
|
|
from utils.admin import dovoodi_admin_site
|
|
from apps.api.views import CustomAPIDocumentationView
|
|
|
|
|
|
# Combine base patterns with Dovoodi specific admin
|
|
urlpatterns = base_urlpatterns + i18n_patterns(
|
|
# Admin panel accessible at /admin/ (Django will redirect to /en/admin/ or /fa/admin/)
|
|
path("admin/", dovoodi_admin_site.urls),
|
|
|
|
# API documentation
|
|
path('docs/', CustomAPIDocumentationView.as_view(), name='docs-index'),
|
|
|
|
# Swagger and API documentation
|
|
*swagger_urlpatterns,
|
|
|
|
# Filer (Django file manager)
|
|
path('admin/filer/', include('filer.urls')),
|
|
path('filer/', include('filer.urls')),
|
|
)
|