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

18 lines
501 B
Python

from django.conf.urls import patterns, url
from .views import LoginView, LogoutView, UserProfileView
urlpatterns = patterns(
'',
url(r'^login/$', LoginView.as_view(), name="login"),
url(r'^logout/$', LogoutView.as_view(), name="logout"),
url(
r'^user/(?P<username>[\w\d\-\.]+)/$',
UserProfileView.as_view(),
name="profile"),
url(
r'^user/(?P<username>[\w\d\-\.]+)/(?P<section>\w+)/$',
UserProfileView.as_view(),
name="profile"),
)