Skip to content

Instantly share code, notes, and snippets.

@amitittyerah
Created February 12, 2014 19:55
Show Gist options
  • Save amitittyerah/8963256 to your computer and use it in GitHub Desktop.
Save amitittyerah/8963256 to your computer and use it in GitHub Desktop.
Sample Django App for uWSGI
import os, sys
import django.core.handlers.wsgi
sys.path.append('/var/www/html/PROJECT')
os.environ['DJANGO_SETTINGS_MODULE'] = 'PROJECT.settings'
application = django.core.handlers.wsgi.WSGIHandler()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment