I'm new at this and stuck. What would cause Django to run without error when I do python manage.py runserver but then throw Internal Server Error when I try to access it through the web? I have another project giving the Congratulations on your first Django-powered page, and I got the same result with the same .wsgi file initially with this project.
It wasn't until I tried to install this script in massivecoupon project that I got Internal Server Error:
I set Debug to True in settings.py and now I am getting the django error:
ViewDoesNotExist at / Could not import massivecoupon.engine.views. Error was: No module named libs
Quick answer: check your apache/tomcat access.log and error.log
Next, the other (not really dup) question I quoted above may be a different situation, but I recommend looking into the same things:
PYTHONPATHmay not contain your project directory, or your
DJANGO_SETTINGS_MODULEmay not contain 'mysite.website', at least from apache's point of view. Whatever user apache runs as for your website needs to have that set up for it, like in its
.profile. Or if you're using
mod_python, they need to be set up in the
httpd.conf. Or if you're using
mod_wsgi, it needs to be in the wsgi setup file --
passenger_wsgi.pyor the like -- whatever apache's module will be looking for.