update
This commit is contained in:
@@ -4,10 +4,11 @@ from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.app, name='index'),
|
||||
path('about/', views.about, name='about'),
|
||||
path('store/', views.store, name='store'),
|
||||
path('store/<slug:page>/', views.store, name='store-page'),
|
||||
path('vacancy/', views.vacancy, name='vacancy'),
|
||||
path('vacancy/<slug:page>/', views.vacancy, name='vacancy-page'),
|
||||
path('<slug:collection>/<int:item_id>/', views.item_page, name='item-view')
|
||||
path('<slug:collection>/<int:item_id>/', views.item_page, name='item-view'),
|
||||
# re_path('(?:store|vacancy|[a-z]+)?(?:/[^/]+)?/?', views.app, name='app'),
|
||||
]
|
||||
|
||||
@@ -58,3 +58,7 @@ def item_page(request, collection, item_id):
|
||||
title = " | ".join(titles + TITLE_TAGS)
|
||||
|
||||
return render(request, 'frontend/app.html', {"title": title})
|
||||
|
||||
|
||||
def about(request):
|
||||
return render(request, 'frontend/app.html', {"title": "О проекте | Визуальные новеллы | NovelPlus"})
|
||||
|
||||
Reference in New Issue
Block a user