Advertisement
fduran

Django pip/virtualenv apache

May 17th, 2012
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. # www.fduran.com
  2. # django, virtualenv, pip, apache
  3. apt-get install python-setuptools python-dev build-essential
  4. easy_install -U pip
  5.  
  6. virtualenv --no-site-packages venv
  7. source venv/bin/activate
  8. pip install django
  9. # other packages:
  10. pip install South python-memcached
  11. pip freeze > requirements.txt
  12.  
  13. # configure apache virtualhost file
  14.  
  15. # create django app
  16.  
  17. # set wsgi path : add to apache.wsgi file:
  18. import site
  19. site.addsitedir('/path/to/venv/lib/python2.6/site-packages')
  20.  
  21. # .gitignore
  22. venv
  23. .pyc
  24. requirements.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement