Code

Changes between Version 10 and Version 11 of CookBookShortcutsOpenIDAuthentication


Ignore:
Timestamp:
04/13/07 05:19:13 (7 years ago)
Author:
Noah Slater <nslater@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookShortcutsOpenIDAuthentication

    v10 v11  
    2121}}} 
    2222 
     23Using global variables like above is '''bad''' practice. Try to avoid this if possible. -- NoahSlater 
     24 
    2325Another approach is to use the main Django database: 
    2426 
     
    3436 
    3537You'll need one view to allow the user to specify an OpenID URL to authenticate.  The following method uses another settings.py addition called SITE_TOP_URL.  (If there's a better way to get or specify this information, I'd like to know.) 
     38 
     39You can use the ''sites'' module to get the current host name and construct a URL from there. -- NoahSlater 
    3640 
    3741{{{