12 lines
505 B
Python
12 lines
505 B
Python
from blog.views import viewblog, addpost, order, index, createmocks, edit, addtopic
|
|
from django.urls import path
|
|
|
|
urlpatterns = [
|
|
path('', index, name="index"),
|
|
path('manage/addpost', addpost, name='addpost'),
|
|
path('manage/addtopic', addtopic, name='addtopic'),
|
|
path('manage/order', order, name='order'),
|
|
path('manage/edit/<int:id>/', edit, name='editpost'),
|
|
path('mock/<str:objtype>/<int:n>/', createmocks, name='mock'),
|
|
path('read/<str:title>', viewblog, name='readpost'),
|
|
]
|