urls.py 371 Bytes
Newer Older
Jason D Yeomans's avatar
Jason D Yeomans committed
1 2 3 4 5 6 7 8 9 10
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # login and logout
    url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'index.html'}, name='logout'),
)