install steps

syncdb / create superuser

1
2
3
4
5
6
7
8
# create all database tables (without creating a superuser at this time):
/var/www/YourSite$ ./manage.py syncdb --all --noinput

# Do faked south migrations
/var/www/YourSite$ ./manage.py migrate --fake

# Create a superuser:
/var/www/YourSite$ ./manage.py createsuperuser

Important: The password must be at least 8 characters long!

troubleshooting: If you get a import error and/or message: Did you activate the virtualenv? -> edit manage.py and change shebang (first line) and point directly to e.g.:

1
2
-#!/usr/bin/env python
+/path/to/PyLucid_env/bin/python

If this is needed, you must also change the shebang in index.fcgi etc.!

insert the initial data

1
2
# Load PyLucid base data into database:
/var/www/YourSite$ ./manage.py loaddata pylucid.json

You must get something like this output:

Installing json fixture 'pylucid' from 'PyLucid_env/src/pylucid/pylucid_project/apps/pylucid_admin/fixtures'.
Installed 159 object(s) from 1 fixture(s)

If you didn't see similar output, something went wrong!

create initial revisions

Populate the django-reversion version database with an initial set of model data:

1
2
# create initial revisions
/var/www/YourSite$ ./manage.py createinitialrevisions

collect all static files

Link/copy all static media files (images, CSS, Javascript) that are needed to render a complete web page into the directory given by STATIC_ROOT:

1
2
# collect all static files as links
/var/www/YourSite$ ./manage.py collectstatic

More info in the django documentation.

You can use --link to link the files, instead of copy them. But this only work if Apache 'Options FollowSymLinks' is enabled.

next step

After the done all these steps here, go to: