Mercurial > agora-palash
annotate apps/profile/urls.py @ 130:5ab229c9d348
Add back ability to edit account settings
* Account/profile editing is now done with a ModelForm, instead of processing
the data manually. Help text and verbose names have been moved to the
Profile model and to the UserForm (in the latter case, it's because we
can't edit the User model directly).
* The profile page now shows pygments style information and sections of the
profile that are not filled are now hidden.
* Some parts of apps/profiles/views.py have been rewritten (the getprofile()
method has been removed, as it's no longer necessary, and the editprofile()
view was rewritten in accordance with the switch to using ModelForms).
* The styling for forms has been modified slightly.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Sat, 22 Sep 2012 11:18:23 -0400 |
parents | d416b8198889 |
children | c7be7def8b57 |
rev | line source |
---|---|
36
bc0137b6c264
Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
1 from django.conf.urls.defaults import * |
bc0137b6c264
Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
2 |
bc0137b6c264
Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
3 urlpatterns = patterns('agora.apps.profile.views', |
78
d416b8198889
Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents:
55
diff
changeset
|
4 url(r'^editprofile$', 'editprofile', name='edit_profile'), |
130
5ab229c9d348
Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents:
78
diff
changeset
|
5 url(r'^(?P<username>\w*)/$', 'showprofile', name='show_profile'), |
36
bc0137b6c264
Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
6 ) |