You need Python 2.7.
This is the usual way to install the prerequisites (but it may be better to install Pillow and TinyMCE through your operating system’s packages first):
mkvirtualenv [--system-site-packages] zadig pip install -r requirements.txt
Installing a development/testing instance¶
You need to:
- Make copies of three files:
zadig/core/static/style-example.css; the copies should be in the same location as the originals and have the same name but without the
- Symlink the tinymce www directory (the one containing the
- If needed, edit your copied
zadig/settings/local.py(although it will work as it is, using SQLite to create a database called
- Create the empty database, depending on the RDBMS you are using (you can skip this step for SQLite).
- Run python manage.py migrate.
- Run python manage.py createrootpage.
- Run python manage.py runserver.
After doing all that, point your browser to http://localhost:8000/.
It is now a very good time to read the Concepts document.
Installing a production instance¶
There are the following differences from installing a development/testing instance:
- You should keep your configuration, custom template files, and
custom CSS in a separate directory, such as
/etc/zadig. In addition, you should store binary files in a separate directory, such as
/var/local/lib/zadig, rather than in the
storagesubdirectory of the Zadig distribution, as it is configured by default to do.
- You should precompile the Zadig distribution Python files, since
your web server (or your Django WSGI process, or whatever it is)
should not have permission to write the
.pyofiles in the Zadig distribution directory.
- You should use a RDBMS that is suitable for a production server. I use PostgreSQL_.
- You should deploy Django as described in Deploying Django, and configure your web server to serve the static files properly.
The details depend on your setup.
These settings are specific to Zadig; the Django settings are also applicable.
A tuple of (language_id, language_description) pairs, indicating the languages available in this installation. The first of these languages is the default language of the site. Example:
ZADIG_LANGUAGES = ( ('en', 'English'), ('el', 'Ελληνικά'), )