PyLucid CMS Logo

1a.2. create a new page instance

↑ previous steps  #

You have done this:

↑ setup page instance  #

Bash
1
2
3
4
5
# go into your virtualenv:
~$ cd PyLucid_env

# create a new page instance with our script:
~/PyLucid_env$ ./create_page_instance.sh /var/www/YourSite

After run our script you should find these files/directory:

/var/www/YourSite/media/ Static media files
/var/www/YourSite/index.cgi CGI handler (should only used for debugging!)
/var/www/YourSite/index.fcgi fastCGI handler
/var/www/YourSite/index.wsgi mod_wsgi handler
/var/www/YourSite/local_settings.py your own settings
/var/www/YourSite/manage.py Access to django cli management
/var/www/YourSite/.htaccess prepared to use fastCGI/mod_wsgi/CGI via mod_rewrite

The path to the Environment would be inserted into "index.cgi" and "index.fcgi".
The .htaccess file would be used the fastCGI script (index.cgi should only used for debugging!)

(btw. the 'source' files are stored in /scripts/apache_files/)

You must edit the created files for you needs!

↑ next step  #

After the done all these steps here, go to:

2 comments for '1a.2. create page instance':
  • 1. Julian:
    Before 8 months, 2 weeks IP: 95.63.170.182
    Hi, To create the page gets this message error Can't import PyLucid: No module named pylucid_project Regards, Julian
  • 2. Jens Diemer:
    Before 8 months, 2 weeks IP: 178.1.243.234
    @Julian: Yes, this message appears. But it will work ;) The Problem is that a local_settings not exists at this point. But this is not needed. We should catch this error and make it silent: https://github.com/jedie/PyLucid/issues/62
Leave a comment

django-processinfo: 5.2 ms of 307.4 ms (1.7%)