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

Added users sitewide url

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