Go Back   HostGator Peer Support Forums > General Discussion > Webhosting

Notices

Reply
 
Thread Tools
  #1  
Old 10-07-2009, 11:23 AM
aule's Avatar
aule aule is offline
Hatchling Croc
 
Join Date: Jun 2009
Location: Minnesota
Posts: 4
Exclamation Django with Sqlite and Python2.4 on shared host

I have a ticket open as we work through some issues.

The support article on Django (at this time) needs to be revised and that should happen soon.

I chose to install Django for SQLite3 which means that (again, at this time) I had to then request the install of pysqlite2 which then revealed that I would need to install python flup ( as in FLUP ) to get FastCGI so as to run SQLite3. That requires rewrite rules to be added to .htaccess in the web root (public_html).

The most daunting problem after the Django admin stie started was that any python syntax error in my app would leave Django refusing to update pages. A sys Admin found that the FCGI on Apache was not configured to timeout. One early work-around was to add an indentical FCGI script to my web root but to give it a new name and add that name into the .htaccess rewrite rules. Doing `touch` on the script or running python manage.py syncdb and such had no effect. This was made more difficult by the limitations placed on `ps` on a shared host: I could not see that process were running. One symptom was that I would lose resources when loggin in SSH - I could not even run `ls` as I would no longer be able to fork any process.

We seem to be makig headway: my Django app is now to the point where I can start to pull in what I had pre-built on my localhost off-site.

I'll add a note when the HG support article is updated. Django is pretty terrific as an alternative to Ruby RAILS and Python is a language worth learning (just look at its role now at Google.)
__________________
G. Robert
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you have multiple cron jobs in shared host account? geogibson Shared Hosting Support 1 04-09-2009 04:18 PM
Best shared host supportwise - but one major flaw boss Shared Hosting Support 1 04-09-2009 09:39 AM
Samba or CUPS available on shared host? icantthinkofone Webhosting 2 10-11-2008 08:49 PM
Cache control is bad for shared host tomda Suggestions 3 05-30-2008 08:10 AM
How do I get my email rails app working on a shared host? erwinquita Shared Hosting Support 0 03-14-2007 11:38 PM

All times are GMT -5. The time now is 09:56 PM.