Django logging in and out - doesn't work if prepend_www set

Posted by ropz on Stack Overflow See other posts from Stack Overflow or by ropz
Published on 2010-06-17T07:32:58Z Indexed on 2010/06/17 11:03 UTC
Read the original article Hit count: 147

Filed under:
|

I'm a Django beginner.

My site - let's call it abc.com - works fine, letting users log in and out (having originally registered via Django registratiaon). If it's relevant, my virtuahosts file has ServerName abc.com and ServerAlias www.abc.com directives.

I don't want my visitors to sense that both abc.com and www.abc.com exist, and so discovered Django's prepend_www setting, which works as intended. In addition to working as intended, however, there's a side effect that disables logging in and out when visiting the www. variant of my site.

© Stack Overflow or respective owner

Related posts about django

Related posts about authentication