Changes between Version 11 and Version 12 of SimpleBashScriptToSetupDevelopmentEnvironment


Ignore:
Timestamp:
Dec 15, 2006, 1:42:45 AM (18 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
Back to Top