Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>My solution is to implement 2 subdomains, 'www' and 'cms', in each of which a separate instance of the Django site is running with a different STATIC_ROOT and a modified INSTALLED_APPS. grappelli runs in the 'www' subdomain. It is not running in the 'cms' subdomain, so that you can use django-cms there.</p> <ul> <li><p>Set up a subdomain: <code>cms.example.com</code></p></li> <li><p>Modify your webserver to serve this subdomain. Use the same settings as your main django site but point to a different script handler. e.g. if using wsgi direct the server to run <code>wsgi_cms.py</code></p></li> <li><p><code>cp wsgi.py wsgi_cms.py</code>. Edit <code>wsgi_cms.py</code> and change the line</p> <p><code>os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")</code> to <code>os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings_cms")</code></p></li> <li><p><code>settings_cms.py</code> : </p></li> </ul> <p>:</p> <pre><code>from settings import * INSTALLED_APPS.remove('grappelli.dashboard') INSTALLED_APPS.remove('grappelli') STATIC_ROOT = os.path.join('/what/ever/static_cms/') STATIC_URL = '/static_cms/' ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/` </code></pre> <ul> <li><p>modify <code>settings.py</code>: change <code>INSTALLED_APPS</code> from a tuple to a list</p></li> <li><p>restart web servers</p></li> <li><p><code>./manage.py collectstatic --settings=myproject.settings_cms</code></p></li> <li><p>your regular site continues as normal. To edit django-cms pages with grappelli disabled go to <a href="http://cms.example.com/admin/cms/page/" rel="nofollow">http://cms.example.com/admin/cms/page/</a></p></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload