use generic views

This commit is contained in:
Lexi / Zoe 2019-06-03 17:57:25 +02:00
parent 23f3d2a96f
commit 89e0328a53
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
4 changed files with 37 additions and 29 deletions

View file

@ -4,6 +4,6 @@ from . import views
app_name = 'projects'
urlpatterns = [
path('', views.index, name='index'),
path('<project_key>/', views.view, name='view'),
path('', views.IndexView.as_view(), name='index'),
path('<slug:project_key>/', views.ProjectView.as_view(), name='view'),
]