/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
- from django.conf.urls.defaults import *
- from django.http import HttpResponseRedirect
- from django_openid.consumer import Consumer
- consumer = Consumer()
- urlpatterns = patterns('',
- (r'^$', lambda r: HttpResponseRedirect('/openid/')),
- # As of Django 1.1 (actually changeset [9739]) you can use include here:
- (r'^openid/', include(consumer.urls)),
- )