Code

Changes between Version 11 and Version 12 of SimpleBashScriptToSetupDevelopmentEnvironment


Ignore:
Timestamp:
12/14/06 23:42:45 (7 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SimpleBashScriptToSetupDevelopmentEnvironment

    v11 v12  
    11= Simple Bash Script To Setup Development Environment = 
    22 
    3 == Pure Python Script == 
    4 {{{ 
    5 #!/bin/sh 
    6  
    7 export DJANGO_PROJECT="$(basename `pwd`)" 
    8 export PYTHONPATH="$(dirname `pwd`)" 
    9 export DJANGO_SETTINGS_MODULE="${DJANGO_PROJECT}.settings" 
    10  
    11 ./script.py 
    12 }}} 
    133 
    144Don'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: 
     
    122112To use it, just source it to update environment variables: 
    123113{{{ 
    124 source env.sh 
     114source django-env.sh 
    125115}}} 
    126116 
    127117To run the server: 
    128118{{{ 
    129 ./env -S 
     119./django-env.sh -S 
    130120}}} 
    131121