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.
2014-03-18 17:23:19 +00:00
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
2014-08-24 16:03:44 +00:00
|
|
|
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(
|
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-03-18 17:23:19 +00:00
|
|
|
)
|