base menu, about page, atom feed
This commit is contained in:
parent
013ca30765
commit
0b64fd58a1
21 changed files with 284 additions and 47 deletions
|
|
@ -19,9 +19,14 @@ from django.urls import path, re_path
|
|||
|
||||
from .item import views as item_views
|
||||
from .user import views as user_views
|
||||
from .page import views as page_views
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path('robots.txt', views.robots_txt, name='robots_txt'),
|
||||
path('sitemap.xml', views.sitemap_xml, name='sitemap_xml'),
|
||||
path('atom.xml', item_views.atom_xml, name='atom_xml'),
|
||||
path('login/', user_views.login, name='login'),
|
||||
path('logout/', user_views.logout, name='logout'),
|
||||
path('register/', user_views.register, name='register'),
|
||||
|
|
@ -29,5 +34,6 @@ urlpatterns = [
|
|||
path('comment/publish/', item_views.publish_comment, name='publish-comment'),
|
||||
path('comment/', item_views.comment, name='comment'),
|
||||
path('<int:id>/', item_views.item, name='item'),
|
||||
path('<str:slug>/', page_views.page, name='page'),
|
||||
path('', item_views.index, name='index'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue