Commit 987985e7 authored by Ysabella Panghulan's avatar Ysabella Panghulan

edited urls.py and forums add link

parent 8c6b1465
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{% endfor %} {% endfor %}
</ol> </ol>
</div> </div>
<a href="../forumposts/add/" class="add-btn"><i class="fa fa-plus"></i> New Post</a> <a href="forumposts/add/" class="add-btn"><i class="fa fa-plus"></i> New Post</a>
</div> </div>
{% endblock %} {% endblock %}
<div class="links"> <div class="links">
......
...@@ -3,7 +3,7 @@ from .views import forum, ForumPostDetailView, ForumPostCreateView, ForumPostUpd ...@@ -3,7 +3,7 @@ from .views import forum, ForumPostDetailView, ForumPostCreateView, ForumPostUpd
urlpatterns = [ urlpatterns = [
path('', forum, name = "forum"), path('', forum, name = "forum"),
path("forum/forumposts/<int:pk>/details/", ForumPostDetailView.as_view(), name = "forumpost-details"), path('forum/forumposts/<int:pk>/details/', ForumPostDetailView.as_view(), name = "forumpost-details"),
path('forumposts/add', ForumPostCreateView.as_view(), name = "forumpost-add"), path('forumposts/add', ForumPostCreateView.as_view(), name = "forumpost-add"),
path('forumposts/<int:pk>/edit', ForumPostUpdateView.as_view(), name = "forumpost-edit") path('forumposts/<int:pk>/edit', ForumPostUpdateView.as_view(), name = "forumpost-edit")
] ]
......
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