This is the code that runs http://planet.python.org.in.
to install do the following:
- Create a virtualenv for planet in the server.
- Create a src folder inside the virtualenv folder and checkout the planet repository
- Next pip instal all the requirements specified. (pip install -r requirements.txt)
- Create the output folder and build the media files into it.(paver build_media_files.
- Rename your planet.py file in your scripts / bin directory to planet-script.py to avoid import conflicts.
- Finally Cron (python <path_to>/planet-script.py <path_to>/template/config.ini) 1.TADA you are done.
A detailed template editing guide is available in the http://planetpython.org documentation.
There are a few useful paver commands packaged in this repo.
Theclean_compiled_templates command is used to clean compiled templates from the source directory. Use this when you encounter a Permission Denied error on repeated runninng of the cron.