Commit e2bd7dc7 authored by Charles Lim's avatar Charles Lim

Fixed urls for base project

parent 349ca2e3
......@@ -14,6 +14,6 @@ Welcome to Widget!
{% block content %}
{% for user in all_widgetusers %}
<a class="details" href="homepage/{{user.id}}/details">{{forloop.counter}}. {{user.last_name}}, {{user.first_name}} {{user.middle_name}}</a> </br>
<a class="details" href="{{user.id}}/details">{{forloop.counter}}. {{user.last_name}}, {{user.first_name}} {{user.middle_name}}</a> </br>
{% endfor %}
{% endblock %}
\ No newline at end of file
......@@ -3,7 +3,7 @@ from .views import HomepageView, WidgetUserDetailView
urlpatterns = [
path('', HomepageView.as_view(), name='index'),
path('/<int:pk>/details', WidgetUserDetailView.as_view(),
path('<int:pk>/details', WidgetUserDetailView.as_view(),
name='widgetuser_detail'),
]
app_name = "homepage"
......@@ -10,10 +10,10 @@
<body>
<nav>
<ul>
<li><a class="links" href="/homepage">HOMEPAGE</a></li>
<li><a class="links" href="/assignments">ASSIGNMENTS</a></li>
<li><a class="links" href="/forum">FORUM</a></li>
<li><a class="links" href="/announcements">ANNOUNCEMENTS</a></li>
<li><a class="links" href="/homepage/">HOMEPAGE</a></li>
<li><a class="links" href="/assignments/">ASSIGNMENTS</a></li>
<li><a class="links" href="/forum/">FORUM</a></li>
<li><a class="links" href="/announcements/">ANNOUNCEMENTS</a></li>
</ul>
</nav>
<div class="content">
......
......@@ -19,12 +19,12 @@ from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('homepage', include("homepage.urls", namespace='homepage')),
path('admin', admin.site.urls),
path('forum', include("forum.urls", namespace='forum')),
path('announcements', include("announcement_board.urls",
path('homepage/', include("homepage.urls", namespace='homepage')),
path('admin/', admin.site.urls),
path('forum/', include("forum.urls", namespace='forum')),
path('announcements/', include("announcement_board.urls",
namespace='announcement_board')),
path('assignments', include("assignments.urls", namespace='assignments')),
path('assignments/', include("assignments.urls", namespace='assignments')),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_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