Advertisement
Guest User

django run.sh

a guest
Oct 30th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. # Filename...: run.sh
  2. # Author.....: Brandon Clinkscales
  3. # Date.......: 5/30/2012
  4. # Copyright..: Standard BSD license
  5. # Purpose....: A means to auto-start django applications from the CLI.
  6.  
  7.  
  8.  
  9. #!/bin/sh
  10.  
  11. export HOST=11.22.111.222
  12. export HOST=127.0.0.1
  13. export PORT=8000
  14.  
  15. export DJANGO_DEBUG=1
  16.  
  17. export DIR=`pwd`
  18. export PROJECT='myproject'
  19.  
  20. export DJANGO_SETTINGS_MODULE=$PROJECT.settings
  21. export PYTHONPATH=$DIR/../:$DIR/modules
  22. #:$DIR/apps/
  23.  
  24. python manage.py runserver $HOST:$PORT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement