fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/shelfzilla/apps/account/urls.py

22 lines
665 B
Python
Raw Normal View History

2014-03-18 17:23:19 +00:00
from django.conf.urls import patterns, url
2015-01-10 11:43:18 +00:00
from .views import (
LoginView, LogoutView, UserProfileView, AccountView, RegisterView
)
2014-03-18 17:23:19 +00:00
urlpatterns = patterns(
'',
2014-03-26 11:24:28 +00:00
url(r'^login/$', LoginView.as_view(), name="login"),
2015-01-10 11:43:18 +00:00
url(r'^register/$', RegisterView.as_view(), name="register"),
2014-03-26 11:24:28 +00:00
url(r'^logout/$', LogoutView.as_view(), name="logout"),
2014-04-03 16:55:07 +00:00
url(
r'^user/(?P<username>[\w\d\-\.]+)/$',
UserProfileView.as_view(),
2014-04-03 16:55:07 +00:00
name="profile"),
url(
r'^user/(?P<username>[\w\d\-\.]+)/(?P<section>\w+)/$',
UserProfileView.as_view(),
2014-04-03 16:55:07 +00:00
name="profile"),
url(r'^account/$', AccountView.as_view(), name='account'),
2014-03-18 17:23:19 +00:00
)