andrewng Posted October 11, 2016 Share Posted October 11, 2016 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 Quote Link to comment Share on other sites More sharing options...
Byron Posted October 11, 2016 Share Posted October 11, 2016 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' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.