Changes between Version 2 and Version 3 of Ticket #21648, comment 7
- Timestamp:
- Sep 17, 2014, 8:26:58 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21648, comment 7
v2 v3 5 5 - Several subdomains pointing to the same Django instance. nginx is redirecting / to /admin on these subdomains as we only allow login and password reset but do not display any django CMS content there: abc.domain.tld, def.domain.tld, ghi.domain.tld, jkl.domain.tld 6 6 - In the templates I use a templatetag which returns different configurations (CSS, etc.) for the subdomains in use based on the host: {{{ host = context['request'].get_host() }}} 7 8 I could remove the singe sites object in the database and then password_reset would return RequestSite(request).domain instead of Site.objects.get_current().domain but the sites object in the database is used at other places. So this is not an option. I will get rid of django CMS in this Django instance in the near future so I will be able to just remove django.contrib.sites from INSTALLED_APPS - but that will just be a solution for me at that point in time.