This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder