@@ -0,0 +1,2387 @@
+#!/usr/bin/env python%0A# kegweb.wsgi -- WSGI config for kegbot%0A%0Aimport os, site, sys%0A%0A# Partially cribbed from:%0A#   http://jmoiron.net/blog/deploying-django-mod-wsgi-virtualenv/%0A# WSGI configuration reference:%0A#   http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives%0A#%0A# Basic instructions for use:%0A#%0A# (1) Copy this file to somewhere accessible by the webserver.  It should *not*%0A#     part of your site's DocumentRoot, for security reasons.%0A# (2) If you are using virtualenv, edit the VIRTUAL_ENV variable below to point%0A#     to the base directory of the virtualenv.%0A# (3) Edit your Apache config to point to this file.  Simple example settings%0A#     are shown below; you may need something fancier.%0A#%0A#     %3CVirtualHost%3E%0A#       # ...%0A#%0A#       WSGIDaemoneProcess mykegbot%0A#       WSGIProcessGroup mykegbot%0A#       WSGIScriptAlias / /path/to/kegweb.wsgi%0A#%0A#       Alias /media /path/to/media_dir/%0A#       Alias /admin_media /path/to/django/contrib/admin/media/%0A#%0A#       # ...%0A#    %3C/VirtualHost%3E%0A%0A### Configuration section -- modify me for your install.%0A%0A# If you are using a virtualenv, set the path to its base directory here.  If%0A# not (kegbot and all its dependencies are installed in the default Python%0A# path), leave it blank.%0AVIRTUAL_ENV = ''%0A%0A# The common_settings.py config needs to be on the PATH as well. By default,%0A# kegbot looks in # $HOME/.kegbot and /etc/kegbot.  Only change this if you are%0A# doing something different.%0AEXTRA_PATHS = %5B%0A    os.path.join(os.environ.get('HOME'), '.kegbot'),%0A    '/etc/kegbot',%0A%5D%0A%0A### Main script -- should not need to edit past here.%0A%0A_orig_sys_path = list(sys.path)%0A%0Aif VIRTUAL_ENV:%0A  # If we have a VIRTUAL_ENV, add it as a site dir.%0A  PYTHON_NAME = 'python%25i.%25i' %25 sys.version_info%5B:2%5D%0A  PACKAGES = os.path.join(VIRTUAL_ENV, 'lib', PYTHON_NAME, 'site-packages')%0A  site.addsitedir(PACKAGES)%0A%0A# Add the kegbot common_settings.py locations to the path.%0Afor path in EXTRA_PATHS:%0A  sys.path.append(path)%0A%0A# Adjust so any new dirs are prepended.%0A_sys_path_prepend = %5Bp for p in sys.path if p not in _orig_sys_path%5D%0Afor item in _sys_path_prepend:%0A  sys.path.remove(item)%0Asys.path%5B:0%5D = _sys_path_prepend%0A%0A# Import django (which must be done after any path adjustments), and start the%0A# handler.%0Afrom django.core.handlers.wsgi import WSGIHandler%0Aos.environ%5B'DJANGO_SETTINGS_MODULE'%5D = 'pykeg.settings'%0Aapplication = WSGIHandler()%0A%0A

add example wsgi config file.