Commit f81a0da8 authored by Cherish Magpayo's avatar Cherish Magpayo

Add url patterns for detail view and images

parent 56cbc539
from django.urls import path from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from . import views from . import views
app_name = "announcements"
urlpatterns = [ urlpatterns = [
path('', views.index, name='index') path('', views.index, name='index'),
] #announcements/1/details/
\ No newline at end of file path("<int:announcement_id>/details/", views.details, name="details"),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
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