Jump to content

Recommended Posts

Posted

Hi,

My Django site keeps giving me an error when trying to set up. I am not sure why. My error log says that it cannot run dispatch.wsgi as python module. I feel like it has to be something to do with my .htaccess/dispatch.wsgi setup. Can anybody help me?

 

Thanks

Posted

Django is working on Stevie.

 

http://area52.heliohost.org/djangotest/dispatch.wsgi

 

I can provide you with a zip file of the working example above:

 

http://area52.heliohost.org/djangotest.zip

 

You need to create .python_egg_cache in your home directory and chmod it 777

 

You also need to edit dispatch.wsgi to your directory path in 2 places as you see mine below:

 

 

import os, sys
sys.path.append("/home1/area52/public_html/djangotest");
 
### EDIT LINE ABOVE TO YOUR SITE ###
 
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/home1/area52/.python_egg_cache'

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...