Commit 64a1e765 authored by Charles Lim's avatar Charles Lim

Fixed URLs of Homepage based on final specs.

parent 69ece558
......@@ -16,5 +16,5 @@ Welcome to Widget!
{% for user in all_widgetusers %}
<a class="details" href="{{user.id}}/details">{{forloop.counter}}. {{user.last_name}}, {{user.first_name}} {{user.middle_name}}</a> </br>
{% endfor %}
<a class="new-user-link" href="users/add">Add Widget User</a>
<a class="new-user-link" href="/users/add">Add Widget User</a>
{% endblock %}
\ No newline at end of file
......@@ -5,7 +5,5 @@ urlpatterns = [
path('', HomepageView.as_view(), name='index'),
path('<int:pk>/details', WidgetUserDetailView.as_view(),
name='widgetuser_detail'),
path('users/add', WidgetUserCreateView.as_view(),
name='widgetuser_form'),
]
app_name = "homepage"
......@@ -17,9 +17,12 @@ from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from homepage.views import WidgetUserCreateView
urlpatterns = [
path('homepage/', include("homepage.urls", namespace='homepage')),
path('users/add', WidgetUserCreateView.as_view(),
name='widgetuser_form'),
path('admin/', admin.site.urls),
path('forum/', include("forum.urls", namespace='forum')),
path('announcements/', include("announcement_board.urls",
......
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