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.

19 lines
711 B

from django.urls import path
from.import views
app_name='movie'
urlpatterns=[
path('',views.IndexView.as_view(),name='index'),
path('hot',views.PopularMovieView.as_view(),name='hot'),
path('login',views.LoginView.as_view(),name='login'),
path('logout',views.UserLogout,name='logout'),
path('register',views.RegisterView.as_view(),name='register'),
path('tag',views.TagView.as_view(),name='tag'),
path('search',views.SearchView.as_view(),name='search'),
path('detail/<int:pk>',views.MovieDetailView.as_view(),name='detail'),
path('history/<int:pk>',views.RatingHistoryView.as_view(),name='history'),
path('del_rec/<int:pk>',views.delete_recode,name='delete_recode'),
]