Jump to content

Recommended Posts

Posted

Hi, I am using Python with Django. I am new to it and I am learning it.

I followed the instructions on the page for Python/Django. I started a small project (for now). The thing is, I used the server that came with Django on my computer, and my project works. When I move it on to HelioHost, it doesn't work. I put the project folder under /public_html/ and have the .htaccess and the dispatch.wsgi in the project folder with the right permissions. Going to my website, http://<website>/<projectfolder> brings up the code of dispatch.wsgi. http://<website>/ gives a directory of /public_html/ because I haven't set up an index page yet (I set Django to provide a page when http://<website>/ is requested).

The Django files are .py, should they be .pyc?

Am I forgetting to do something (like starting up Django, if there is such a thing), am I doing something wrong, or what?

Posted

Okay, I've got it working. You have a few errors you'll have to fix (for instance, you need to switch some paths in settings.py), but you can continue to debug by yourself from here.

 

The issue was that Python needed a temporary directory to store eggs (modules, ie. MySQL and PgSQL).

Posted

I have updated the heliohost.org guide with the proper directions. If you experience this problem again, just follow the directions there.

Posted

OK, I am getting a 500 Internal Server Error now. :\

The error log reports Exception occurred processing dispatch.wsgi, line 9.

The cache is still there, I only edited files. I followed the instructions again.

Posted

Sorry, that problem is now fixed. I recently upgraded to Django 1.0, and there was a conflict between an old and new version of a file that was causing the error.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...