posts can now be edited
This commit is contained in:
parent
6b0cd847c6
commit
b3c0ac3f38
6 changed files with 206 additions and 5 deletions
|
|
@ -1,10 +1,11 @@
|
|||
from blog.views import viewblog, addpost, order, index, createmocks
|
||||
from blog.views import viewblog, addpost, order, index, createmocks, edit
|
||||
from django.urls import path
|
||||
|
||||
urlpatterns = [
|
||||
path('', index, name="index"),
|
||||
path('manage/addpost', addpost, name='addpost'),
|
||||
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'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue