PageRenderTime 28ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): BSD-2-Clause
  1. from django.conf.urls.defaults import *
  2. from django.http import HttpResponseRedirect
  3. from django_openid.consumer import Consumer
  4. consumer = Consumer()
  5. urlpatterns = patterns('',
  6. (r'^$', lambda r: HttpResponseRedirect('/openid/')),
  7. # As of Django 1.1 (actually changeset [9739]) you can use include here:
  8. (r'^openid/', include(consumer.urls)),
  9. )