Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Filename...: run.sh
- # Author.....: Brandon Clinkscales
- # Date.......: 5/30/2012
- # Copyright..: Standard BSD license
- # Purpose....: A means to auto-start django applications from the CLI.
- #!/bin/sh
- export HOST=11.22.111.222
- export HOST=127.0.0.1
- export PORT=8000
- export DJANGO_DEBUG=1
- export DIR=`pwd`
- export PROJECT='myproject'
- export DJANGO_SETTINGS_MODULE=$PROJECT.settings
- export PYTHONPATH=$DIR/../:$DIR/modules
- #:$DIR/apps/
- python manage.py runserver $HOST:$PORT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement