/django_openid/demos/consumer_django11/urls.py
Python | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | fad440adcae8f45b6e6b47f13f1db79b MD5 | raw file
Possible License(s): BSD-2-Clause
- 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)),
- )