Skip to content

Instantly share code, notes, and snippets.

@jgumbley
Created April 2, 2010 15:40
Show Gist options
  • Save jgumbley/353277 to your computer and use it in GitHub Desktop.
Save jgumbley/353277 to your computer and use it in GitHub Desktop.
import os, sys
sys.path.append('/path/to/djangoapp/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'djangoapp.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
import djangoapp.monitor
djangoapp.monitor.start(interval=1.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment