Files
serviceCRM/serviceCRM/urls.py
2023-04-24 23:34:26 +02:00

28 lines
1.0 KiB
Python

"""
URL configuration for serviceCRM project.
The `urlpatterns` list routes URLs to views.py. For more information please see:
https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views.py
1. Add an import: from my_app import views.py
2. Add a URL to urlpatterns: path('', views.py.home, name='home')
Class-based views.py
1. Add an import: from other_app.views.py import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
import serviceCRM.views as view
urlpatterns = [
path("", view.TableView.as_view(), name="index"),
path('admin/', admin.site.urls),
path("<int:question_id>/", view.ReportById.ReportById, name="detail"),
path("insert/", view.InsertNew.insert, name="insert"),
path("done/<int:question_id>", view.done, name="done"),
]