Commit e2bd7dc7 authored by Charles Lim's avatar Charles Lim

Fixed urls for base project

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