About Blog Gallery Twit

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.

Add post to: Delicious Reddit Slashdot Digg Technorati Google
Comment

Comments

Alexander Solovyov 21.05.2008 14:42

You can easily put this settings in settings_local.py, where they will override default values.

reply
Alexander Solovyov 21.05.2008 14:46

Uhh, seems that your CSS transforms code tag in block element. :-(

reply
William Stearns 21.05.2008 16:45

Heheh, I’ll have to make those fixes. CSS, my worst enemy. :-)

reply
Alexander Solovyov 22.05.2008 2:24

Hahah, same for me. :-)

reply

Comment form for «Byteflow on Dreamhost»

Required. 30 chars of fewer.

Required.

captcha image Please, enter symbols, which you see on the image