I have sites with two subdomains
- www.example.com
- test.example.com
Both speak with the same DB. However, both are separate code bases.
I want the admin login to be saved between the two sites. (If you register on www, you automatically register for testing and vice versa)
I have these settings in settings.py
CSRF_COOKIE_DOMAIN = SESSION_COOKIE_DOMAIN = ".example.com"
SECRET_KEY ="theeisnospoonblahblah"
Admins seem to be talking, but weird.
If I go to www.example.com and log in to the Administrator, if I go to test.example.com, instead of logging in to test.example.com admin,
I automatically exit www.example.com.
I miss the settings in settings.py
source
share