cms/cmsMain/urls.py

12 lines
361 B
Python
Raw Normal View History

2024-08-11 22:39:47 +03:00
from django.urls import path, include
2024-10-02 10:31:07 +03:00
from .views import MainView, PageView, FeedbackView
2024-09-01 15:07:03 +03:00
from django.conf.urls.static import static
from django.conf import settings
2024-08-11 22:39:47 +03:00
urlpatterns = [
2024-09-01 15:07:03 +03:00
*static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT),
2024-10-02 10:31:07 +03:00
path('api/feedback',FeedbackView.as_view()),
2024-08-13 14:41:25 +03:00
path('<slug:page>',PageView.as_view()),
2024-08-11 22:39:47 +03:00
path('',MainView.as_view())
2024-09-01 15:07:03 +03:00
]