Changes between Version 1 and Version 2 of Ticket #21648, comment 7


Ignore:
Timestamp:
Sep 17, 2014, 8:07:56 AM (10 years ago)
Author:
Philipp Metzler

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21648, comment 7

    v1 v2  
    11No I've got:
    22
    3 - One Django instance with one settings.py which contains SITE_ID = 1
     3- One Django instance with one settings.py which contains {{{ SITE_ID = 1 }}}
    44- Django CMS installed and INSTALLED_APPS containing django.contrib.sites The django CMS pages are only rendered for www.domain.tld
    55- 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 - 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()
     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() }}}
Back to Top