Skip to content

Setting environment for running utilities

chmarr edited this page Dec 2, 2012 · 3 revisions

To run any of the command line utilities that need access to the Django database - which is most of them - certain environment variables need to be set. (Replace PROJDIR with the top level directory for the project):

export PYTHONPATH=PROJDIR
export DJANGOSETTINGSMODULE=local_settings

Most command-line utilities are being replaced as Django management commands (eg: ./manage.py scannerreader), which takes care of the above for you.

Clone this wiki locally