Commit 66a3d8f6 authored by Anya Habana's avatar Anya Habana

Added users sitewide url

parent d33f9bee
......@@ -13,11 +13,10 @@
{% if user_list %}
<ol>
{% for user in user_list %}
<li><a href="/homepage/users/{{ user.id }}/details/">{{ user.last_name }}, {{ user.first_name }} {{ user.middle_name }}</a></li>
<li><a href="/users/{{ user.id }}/details">{{ user.last_name }}, {{ user.first_name }} {{ user.middle_name }}</a></li>
{% endfor %}
</ol>
{% else %}
<p> There are no widget users currently. </p>
{% endif %}
<p> Th
{% endblock %}
......@@ -4,7 +4,7 @@ from .views import WidgetUserDetailView, index
urlpatterns = [
path('', index, name='index'),
path('users/<int:pk>/details/', WidgetUserDetailView.as_view(), name='details'),
path('<int:pk>/details/', WidgetUserDetailView.as_view(), name='details'),
]
app_name = 'homepage'
\ No newline at end of file
......@@ -22,4 +22,5 @@ urlpatterns = [
path('forum/', include('forum.urls', namespace='forum')),
path('homepage/', include('homepage.urls', namespace='homepage')),
path('assignments/', include('assignments.urls', namespace='assignments')),
path('users/', include('homepage.urls', namespace='users')),
]
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