Changes between Version 10 and Version 11 of CookBookShortcutsOpenIDAuthentication
- Timestamp:
- Apr 13, 2007, 7:19:13 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookShortcutsOpenIDAuthentication
v10 v11 21 21 }}} 22 22 23 Using global variables like above is '''bad''' practice. Try to avoid this if possible. -- NoahSlater 24 23 25 Another approach is to use the main Django database: 24 26 … … 34 36 35 37 You'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 39 You can use the ''sites'' module to get the current host name and construct a URL from there. -- NoahSlater 36 40 37 41 {{{