ofite/app/website/urls.py
2024-12-19 16:59:57 +07:00

21 lines
837 B
Python

from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, include
from website.views import index, get_projects, get_services, get_project, \
get_service, feedback, get_sub_service, get_module
urlpatterns = [
path('', index, name='index'),
path('projects/<str:slug>/', get_project),
path('projects/', get_projects),
path('services/<str:slug>/', get_service),
path('services/<str:service_slug>/<str:sub_service_slug>/', get_sub_service),
path('services/<str:service_slug>/<str:sub_service_slug>/<str:module_slug>/', get_module),
path('services/', get_services),
path('feedback/', feedback),
path("ckeditor5/", include('django_ckeditor_5.urls')),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)