PyLucid supports multi sites. With this feature you can server different sites with one installation, one database and one running server process.

Many information can be shared to all/some sites:

  • The User Accounts (A user can access all sites or is limited to some sites.)
  • Design: Templates, CSS/JS-Headfiles, ColorScheme etc.
  • Lexicon entries
  • Blog entries

dynamic SITE_ID

Since PyLucid v1.0 we used the Dynamic SITE ID Feature from django-tools.
This feature make it possible to serve different sites with one server instance. The SITE_ID would be set dynamic by the current Domain name.

Site aliases

To access the same site via different domains/sub-domains, you can define site aliases as a simple string or as a regular expression, here:

  • Django admin site / Dynamic_Site / Site aliases

This feature is nice if you change your server, e.g:

  1. import database dump on new server
  2. create a sub-domain and assign the new server IP address (the current domain used the old server)
  3. add a site aliases for the sub-domain

Now, the new server is access-able via the new sub-domain, while the normal, public domain used the old server. You can check your new server and if everything works fine, change the DNS settings of your normal domain.

add a new site

  • login into existing PyLucid site.
  • Create a new site entry in database:
    • Django admin site / Sites / Add site (Remeber the SIDE_ID)
  • Add the new site to existing users:
    • Django admin site / PyLucid / User profiles
  • Create/change design, templates, headfile for the new site.
    • e.g.: Use PyLucid admin menu / edit look / clone design
  • Add the default language to the site

migrate old v0.8

You can migrate a old v0.8 installation into a new v0.8 site, see: