Commit ad18af1b authored by Daniel W Bond's avatar Daniel W Bond
Browse files

logout and login urls

parent 31260c99
from django.views.generic import TemplateView
from django.conf.urls import patterns, include, url from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.contrib import admin from django.contrib import admin
admin.autodiscover() admin.autodiscover()
# custom 404
# custom 500
urlpatterns = patterns('', urlpatterns = patterns('',
# project-level urls # project-level urls
url(r'^$', TemplateView.as_view( template_name="index.html" ), name='index'), url(r'^$', TemplateView.as_view( template_name="index.html" ), name='index'),
# url(r'^$', about.html # url(r'^about/$', TemplateView.as_view(template_name='about.html'), name='about'),
# url(r'^contact/$', TemplateView.as_view(template_name='contact.html'), name='contact'),
# url(r'^privacy/$', TemplateView.as_view(template_name='privacy.html'), name='privacy'),
# logins
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'),
# app-level urls # app-level urls
url(r'^housing/', include('housing.urls')), url(r'^housing/', include('housing.urls')),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment