Changes between Version 11 and Version 12 of SimpleBashScriptToSetupDevelopmentEnvironment
- Timestamp:
- Dec 15, 2006, 1:42:45 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SimpleBashScriptToSetupDevelopmentEnvironment
v11 v12 1 1 = Simple Bash Script To Setup Development Environment = 2 2 3 == Pure Python Script ==4 {{{5 #!/bin/sh6 7 export DJANGO_PROJECT="$(basename `pwd`)"8 export PYTHONPATH="$(dirname `pwd`)"9 export DJANGO_SETTINGS_MODULE="${DJANGO_PROJECT}.settings"10 11 ./script.py12 }}}13 3 14 4 Don't know why the '''sh''' wiki processor ain't workin', maybe the server doesn't have `enscript` installed, so here's a plain and not that neat view of the script: … … 122 112 To use it, just source it to update environment variables: 123 113 {{{ 124 source env.sh114 source django-env.sh 125 115 }}} 126 116 127 117 To run the server: 128 118 {{{ 129 ./ env-S119 ./django-env.sh -S 130 120 }}} 131 121