Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 20th, 2011  |  syntax: Python  |  size: 0.40 KB  |  views: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. httpd.conf:
  2.  
  3. WSGIScriptAlias /treeio /var/www/treeio/wsgi.py
  4. WSGIPythonPath /var/www/treeio
  5.  
  6. <Directory /var/www/treeio>
  7. <Files wsgi.py>
  8. Order deny,allow
  9. Allow from all
  10. </Files>
  11. </Directory>
  12.  
  13. ------
  14.  
  15. /var/www/treeio/wsgi.py:
  16.  
  17. import os
  18.  
  19. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
  20.  
  21. from django.core.wsgi import get_wsgi_application
  22. application = get_wsgi_application()
clone this paste RAW Paste Data