First initial commit for test Django website
This commit is contained in:
11
post/urls.py
Normal file
11
post/urls.py
Normal file
@ -0,0 +1,11 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
app_name = 'post'
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.post_list, name="list"),
|
||||
path('new-post/', views.post_new, name="new-post"),
|
||||
path('<slug:slug>', views.post_page, name="page"),
|
||||
|
||||
]
|
||||
Reference in New Issue
Block a user