Changes between Version 7 and Version 8 of CookBookShortcutsOpenIDAuthentication


Ignore:
Timestamp:
08/30/2006 09:25:01 PM (9 years ago)
Author:
shields@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookShortcutsOpenIDAuthentication

    v7 v8  
    1919
    2020initializeOpenID ()
     21}}}
     22
     23Another approach is to use the main Django database:
     24
     25{{{
     26#!python
     27def _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)
    2133}}}
    2234
Back to Top