Spirit/spirit/user/urls.py
2018-02-23 17:22:31 -03:00

30 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import url, include
from .auth import urls as auth_urls
from . import views
urlpatterns = [
url(r'^$', views.update, name='update'),
url(r'^password-change/$', views.password_change, name='password-change'),
url(r'^email-change/$', views.email_change, name='email-change'),
url(r'^email-change/(?P<token>[0-9A-Za-z_\-\.]+)/$', views.email_change_confirm, name='email-change-confirm'),
url(r'^(?P<pk>[0-9]+)/$', views.comments, kwargs={'slug': "", }, name='detail'),
url(r'^(?P<pk>[0-9]+)/(?P<slug>[\w-]+)/$', views.comments, name='detail'),
url(r'^topics/(?P<pk>[0-9]+)/$', views.topics, kwargs={'slug': "", }, name='topics'),
url(r'^topics/(?P<pk>[0-9]+)/(?P<slug>[\w-]+)/$', views.topics, name='topics'),
url(r'^likes/(?P<pk>[0-9]+)/$', views.likes, kwargs={'slug': "", }, name='likes'),
url(r'^likes/(?P<pk>[0-9]+)/(?P<slug>[\w-]+)/$', views.likes, name='likes'),
url(r'^menu/$', views.menu, name='menu'),
url(r'^', include(auth_urls, namespace='auth')),
]