andrewng Posted October 11, 2016 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
Byron Posted October 11, 2016 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'
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now