Files
Basyrov Rustam ebf90a591b move functions to class
Used generic views
2025-06-04 18:53:17 +03:00

12 lines
347 B
Python

from django.urls import path
from . import views
app_name = "polls"
urlpatterns = [
path("", views.IndexView.as_view(), name="index"),
path("<int:pk>/", views.DetailView.as_view(), name="detail"),
path("<int:pk>/results/", views.ResultsView.as_view(), name="results"),
path("<int:question_id>/vote/", views.vote, name="vote"),
]