From: williambratches Date: Tue, 25 Feb 2014 23:48:55 +0000 (-0500) Subject: Let users edit account settings #291 X-Git-Tag: release-20150131~148^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f26fce8c213347ec51441e5590c87ff1decc7801;p=oweals%2Fkarmaworld.git Let users edit account settings #291 --- 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',