Byteflow on Dreamhost
I have been hacking at my Dreamhost account for some time now. I’ve installed my own copy of Python so I can have 2.5 compatibility on my account.
[homer]$ python
Python 2.5.1 (r251:54863, Jan 30 2008, 04:48:32)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
[homer]$
My dispatch.fcgi file looks like this:
#!/home/wstearns/opt/bin/python
import sys
sys.path += ['/home/wstearns/django_src']
sys.path += ['/home/wstearns/django_projects/byteflow']
from fcgi import WSGIServer
from django.core.handlers.wsgi import WSGIHandler
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
WSGIServer(WSGIHandler()).run()
I was a bad boy and edited a file I’m not supposed to in Byteflow, settings.py. I suppose I could have overrode the settings in my local, but I’m still learning.
STATIC_ROOT = '/home/wstearns/media.wstearns.com/static'
STATIC_URL = 'http://media.wstearns.com/static/'
ADMIN_MEDIA_PREFIX = 'http://media.wstearns.com/admin-media/'
Pretty much everything else I followed the directions linked on the wiki.
UPDATE — The overridden section can be placed anywhere in the settings_local.py file. Oh, and my CSS skills suck. As always you can consult the wiki entry at Dreamhost for Django.
