From f26fce8c213347ec51441e5590c87ff1decc7801 Mon Sep 17 00:00:00 2001 From: williambratches Date: Tue, 25 Feb 2014 18:48:55 -0500 Subject: [PATCH] Let users edit account settings #291 --- karmaworld/apps/users/views.py | 3 +++ karmaworld/templates/header.html | 1 + karmaworld/urls.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/karmaworld/apps/users/views.py b/karmaworld/apps/users/views.py index 7d60078..b2f17b6 100644 --- a/karmaworld/apps/users/views.py +++ b/karmaworld/apps/users/views.py @@ -31,3 +31,6 @@ class ProfileView(TemplateView, MultipleObjectMixin): return super(ProfileView, self).get_context_data(**kwargs) +class ControlView(TemplateView): + template_name = 'control_panel.html' + diff --git a/karmaworld/templates/header.html b/karmaworld/templates/header.html index 53dc51f..23b1250 100644 --- a/karmaworld/templates/header.html +++ b/karmaworld/templates/header.html @@ -41,6 +41,7 @@
diff --git a/karmaworld/urls.py b/karmaworld/urls.py index e6044b9..c50f514 100644 --- a/karmaworld/urls.py +++ b/karmaworld/urls.py @@ -20,6 +20,7 @@ from karmaworld.apps.notes.views import RawNoteDetailView from karmaworld.apps.moderation import moderator from karmaworld.apps.document_upload.views import save_fp_upload from karmaworld.apps.users.views import ProfileView +from karmaworld.apps.users.views import ControlView # See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf @@ -64,6 +65,7 @@ urlpatterns = patterns('', # All Auth url(r'^accounts/', include('allauth.urls')), url(r'^accounts/profile/', ProfileView.as_view(), name='accounts_profile'), + url(r'^accounts/control_panel', ControlView.as_view(), name='control_panel'), # Media handling url(r'^media/(?P.*)$', 'django.views.static.serve', -- 2.25.1