Add the details and image paths for the urls

parent 40b688fa
from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from . import views
app_name = "forum"
urlpatterns = [
path('', views.index, name='index') #has 4 parameters
]
\ No newline at end of file
path('', views.index, name='index'),
# forum/post_id
path("posts/<int:post_id>/details", views.details, name="details"),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment