Changes between Version 7 and Version 8 of CookBookShortcutsOpenIDAuthentication
- Timestamp:
- Aug 30, 2006, 9:25:01 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookShortcutsOpenIDAuthentication
v7 v8 19 19 20 20 initializeOpenID () 21 }}} 22 23 Another approach is to use the main Django database: 24 25 {{{ 26 #!python 27 def _get_openid_consumer(request): 28 # Force Django to open the database: 29 django.db.connection.cursor() 30 31 store = SQLiteStore(django.db.connection.connection) 32 return Consumer(request.session, store) 21 33 }}} 22 34