I switched to Debug=False in my Django project and set the ALLOWED_HOSTS to 'mccall114.pythonanywhere.com'. When I load my page, none of the images are displayed (they are within the media subfolder). The CSS from my static folder displays fine.
I would appreciate any insight into the issue here. Error log is below.
2014-10-03 22:57:00,396 :Internal Server Error: /art/ Traceback (most recent call last): File "/home/mccall114/.virtualenvs/rango/lib/python2.7/site-packages/django/core/handlers/base.py", line 92, in get_response response = middleware_method(request) File "/home/mccall114/.virtualenvs/rango/lib/python2.7/site-packages/django/middleware/common.py", line 57, in process_request host = request.get_host() File "/home/mccall114/.virtualenvs/rango/lib/python2.7/site-packages/django/http/request.py", line 72, in get_host "Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): %s" % host) SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): mccall114.pythonanywhere.com