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(
|
2014-08-24 16:03:44 +00:00
|
|
|
r'^user/(?P<username>[\w\d\-\.]+)/$',
|
|
|
|
UserProfileView.as_view(),
|
2014-04-03 16:55:07 +00:00
|
|
|
name="profile"),
|
|
|
|
url(
|
2014-08-24 16:03:44 +00:00
|
|
|
r'^user/(?P<username>[\w\d\-\.]+)/(?P<section>\w+)/$',
|
|
|
|
UserProfileView.as_view(),
|
2014-04-03 16:55:07 +00:00
|
|
|
name="profile"),
|
2014-11-05 19:45:53 +00:00
|
|
|
url(r'^account/$', AccountView.as_view(), name='account'),
|
2014-03-18 17:23:19 +00:00
|
|
|
)
|