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/users/urls.py

18 lines
500 B
Python
Raw Normal View History

2014-03-18 17:23:19 +00:00
from django.conf.urls import patterns, url
from .views import LoginView, LogoutView,UserProfileView
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"),
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"),
2014-03-18 17:23:19 +00:00
)