create a page instance by foot...
We prefer to use our Bootstrap script: Create a PyLucid environment with PyLucid-boot.
Anyhow, here the steps to create a
PyLucid page instance by foot:
Specifications: We create a "page instance" in /var/www/YourSite and use the
PyLucid installation from /home/FooBar/PyLucid_env/.
Please edit /var/www/YourSite/.htaccess: In some cases you must activate the suitable AddHandler line.
You must change the path to your created environment in the .fcgi dispatcher file. Edit /var/www/YourSite/index.fcgi and change this part:
FIXME: django path is not correct!
Copy
PyLucid and django static media files:
more info: about static media files
edit the file /var/www/YourSite/manage.py and change the ROOT_DIR to /home/FooBar/PyLucid_env/
To set own settings variable, you should create:
- /var/www/YourSite/local_settings.py
You must set this into your local_settings.py:
Note:
- This two path are in default .htaccess in the mod rewrite exception list.
- You will get JS errors, if
pylucid media files can't be loaded.
(see also: a complete local_settings.py example)