Skip to content

Instantly share code, notes, and snippets.

View jgumbley's full-sized avatar

Jim Gumbley jgumbley

View GitHub Profile
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)
# for the deamon behavoir
WSGIDaemonProcess appname-django processes=2 threads=15
WSGIProcessGroup appname-django
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.client1.net
# to mount the application from the wsgi script (see next gist)
WSGIScriptAlias / /path/to/your/dev.wsgi
NameVirtualHost *:80
<VirtualHost *:80>
ServerName blog.client1.net
DocumentRoot /var/www/client1/blog
</VirtualHost>
<VirtualHost *:80>
ServerName www.client1.net
DocumentRoot /var/www/client1/www
import ConfigParser
import base64
import unittest
import os
import optparse
class SettingsTest(unittest.TestCase):
"""Tests for the Settings class"""
def setUp(self):
self.testfile = "test.ini"
http://www.hudson-labs.org/content/hudson-pycon
http://marakana.com/forums/java/general/79.html
http://www.fednet.net/asx/mg/MG121809.asx
http://www.bbc.co.uk/iplayer/episode/b00plhhs/Review_2009_The_Year_in_Politics/
http://www.eventghost.org/downloads/EventGhost_0.3.7.r1387_Setup.exe
http://www.mckinseyquarterly.com/ghost.aspx?ID=/Economic_Studies/Country_Reports/The_looming_deleveraging_challenge_2510?gp=1