12 lines
361 B
Python
12 lines
361 B
Python
from django.conf.urls import url
|
|
from django.contrib.auth import views as auth_views
|
|
|
|
from accounts import views
|
|
|
|
|
|
urlpatterns = [
|
|
url(r'^login/$', auth_views.login, {'template_name': 'accounts/login.html'}, name='login'),
|
|
url(r'^logout/$', auth_views.logout, {'next_page': '/'}, name='logout'),
|
|
url(r'^profile/$', views.profile, name='profile'),
|
|
]
|