sds
2 years ago in Python
from django.urls import path
from . import views
app_name = 'posts'
urlpatterns = [
path('', views.index, name='index'),
path('profile/<username>/', views.profile, name='profile'),
path('posts/<post_id>/', views.post_detail, name='post_detail'),
path('create/', views.post_create, name='post_create'),
path('posts/<post_id>/edit/', views.post_edit, name='post_edit'),
path('group/<slug>/', views.group_posts, name='group_list')
]