Cache issue on Dreamhost?

125 views
Skip to first unread message

Chase

unread,
Jan 25, 2006, 11:24:11 PM1/25/06
to Django users
I recently installed Django on Dreamhost, following the great
instructions here: http://wiki.dreamhost.com/index.php/Django. The
installation worked fine, but any change I make to an app takes hours
to register on the Web. It seems to be an fcgi or caching problem,
possibly not reloading myproject.settings upon reload of the page.

To test, I altered the line os.environ['DJANGO_SETTINGS_MODULE']
='myproject.settings' in django.fcgi, changing 'myproject.settings' to
something invalid. As it should have, the page gave me an error on
reload. I then changed ' myproject.settings' back to normal, and my
changes appeared immediately -- I'm guessing because it was forced to
reload the settings file.

Any idea how to fix this? I'm running Django on a subdomain, with all
the files in the home directory. I'm also new to this. Mercy would be
appreciated.

Thanks,
Chase

Eugene Lazutkin

unread,
Jan 26, 2006, 1:20:07 AM1/26/06
to django...@googlegroups.com
Chase wrote:
> I recently installed Django on Dreamhost, following the great
> instructions here: http://wiki.dreamhost.com/index.php/Django. The
> installation worked fine, but any change I make to an app takes hours
> to register on the Web. It seems to be an fcgi or caching problem,
> possibly not reloading myproject.settings upon reload of the page.

You have to kill python after Python changes using "pkill python"
command. Or "pkill python2.4", if you use Python 2.4. It will force
restart of fcgi.

If you use Django cache, you may want to flush it, if your changes
affect content. For example, I use a file-based cache. In this case
flushing is as simple as removing cache files.

Thanks,

Eugene


Chase

unread,
Jan 26, 2006, 10:01:02 AM1/26/06
to Django users
I knew it was that easy. Must have missed that line in the install
guide.

Thanks,
Chase

Reply all
Reply to author
Forward
0 new messages