Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Commit

Permalink
Added wsgi file
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredo committed Mar 6, 2012
1 parent ea5c428 commit c0afd02
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions wsgi/phase2.wsgi
@@ -0,0 +1,17 @@
import os
import site

os.environ['CELERY_LOADER'] = 'django'
# Add the app dir to the python path so we can import manage.
wsgidir = os.path.dirname(__file__)
site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))

# manage adds /apps, /lib, and /vendor to the Python path.
import manage

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_local'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

# vim: ft=python

0 comments on commit c0afd02

Please sign in to comment.