urls.py 588 B

12345678910111213141516
  1. from django.contrib.auth import views as auth_views
  2. from django.conf.urls import url, include
  3. from . import views
  4. from .forms import PasswordResetForm
  5. urlpatterns = [
  6. url(r'^profile/$', views.profile, name='profile'),
  7. url(r'^auth_api/(?P<token>[a-zA-Z0-9]{32})/$', views.auth_api, name='auth_api'),
  8. url(r'^password_reset/$', auth_views.PasswordResetView.as_view(form_class=PasswordResetForm), name='password_reset'),
  9. url(r'^login/$', views.login, name='login'),
  10. url(r'^logout/$', views.logout, name='logout'),
  11. url(r'^', include('django.contrib.auth.urls')),
  12. ]