Changes between Version 1 and Version 2 of ThinkhostSetup


Ignore:
Timestamp:
11/06/06 20:49:09 (8 years ago)
Author:
Chris Moffitt <chris.moffitt@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ThinkhostSetup

    v1 v2  
    11== Setting up Django on Thinkhost ==
     2http://www.thinkhost.com has been my provider for a while.  While they don't specifically promote their Python support, they run FreeBSD and have always been very willing to install additional Python packages upon request.  For example, I recently asked them to install PIL and it was done in short order.
     3
     4I noticed that they supported fcgi and figured I'd give it a shot to see if I could get Django working.  Here's how I managed to get it running for my setup.  This is heavily based on the other fcgi samples found on the web.
    25
    36=== Control Panel Setup ===
     
    811}}}
    912
    10  * Use the control panel to create your MySQL username and password as well as any databases you may want to use.
     13 * Use the control panel to create your MySQL username and password as well as any databases you may want to use.  You'll need to put this in your settings file later on.
    1114
    1215=== Command Line Configuration ===
     
    5861RewriteRule ^/(media.*)$ /$1 [QSA,L]
    5962RewriteCond %{REQUEST_FILENAME} !-f
    60 RewriteRule ^(shop.*)$ /cgi-bin/mysite.fcgi/$1 [QSA,L]
    6163RewriteRule ^(admin.*)$ /cgi-bin/mysite.fcgi/$1 [QSA,L]
    6264}}}
     
    6769ln -s /usr/home/www/yourusername/my-domain.com/tools/django_src/django/contrib/admin/media
    6870}}}
     71
     72This seems to work well for me.  The only caveat is that it takes time after you make changes for them to show up on the system.  As such, I can't recommend this approach for a development environment but it works fine for production where changes to your Django code will be minimal.
Back to Top