/django_openid/demos/consumer_django11/urls.py

http://django-openid.googlecode.com/ · Python · 11 lines · 8 code · 2 blank · 1 comment · 0 complexity · fad440adcae8f45b6e6b47f13f1db79b MD5 · raw file

  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. )