PageRenderTime 242ms CodeModel.GetById 121ms app.highlight 1ms RepoModel.GetById 119ms app.codeStats 1ms

/django_openid/demos/consumer_django11/urls.py

http://django-openid.googlecode.com/
Python | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | fad440adcae8f45b6e6b47f13f1db79b MD5 | raw file
 1from django.conf.urls.defaults import *
 2from django.http import HttpResponseRedirect
 3from django_openid.consumer import Consumer
 4
 5consumer = Consumer()
 6
 7urlpatterns = patterns('',
 8    (r'^$', lambda r: HttpResponseRedirect('/openid/')),
 9    # As of Django 1.1 (actually changeset [9739]) you can use include here:
10    (r'^openid/', include(consumer.urls)),
11)