PonyConf/accounts/urls.py

17 lines
823 B
Python
Raw Normal View History

2016-06-13 00:00:30 +00:00
from django.conf import settings
from django.conf.urls import include, url
2016-06-12 16:47:26 +00:00
from django.contrib.auth import views as auth_views
2016-06-07 20:59:13 +00:00
2016-06-14 21:58:04 +00:00
from . import views
2016-06-07 20:59:13 +00:00
urlpatterns = [
2016-06-25 16:58:19 +00:00
url(r'^register/$', views.Registration.as_view(), name='register'),
2016-06-25 15:38:01 +00:00
url(r'^profile/$', views.profile, name='profile'),
url(r'^profile/(?P<username>[\w.@+-]+)$', views.edit, name='edit-profile'),
2016-06-25 16:58:19 +00:00
url(r'^login/$', auth_views.login, {'extra_context': {'buttons': [views.RESET_PASSWORD_BUTTON]}}, name='login'),
2016-06-12 18:02:59 +00:00
url(r'^logout/$', auth_views.logout, {'next_page': settings.LOGOUT_REDIRECT_URL}, name='logout'),
2016-06-14 21:58:04 +00:00
url(r'^admin/participants/$', views.participants, name='participants'),
url(r'^admin/participant/(?P<username>[\w.@+-]+)$', views.participant, name='show-participation'),
url(r'', include('django.contrib.auth.urls')),
2016-06-07 20:59:13 +00:00
]