The My Django application on my production server hosted on Webfaction worked fine until I just tried to restart it after clicking on the settings.py file. I ran
apache2/bin/restart
normally. Then I tried to access my application in my browser, and I had a 504 Gateway timeout. I looked through the mod_wsgi logs and saw this:
[Thu Nov 03 23:46:53.605625 2016] [wsgi:error] [pid 8027:tid 139641332168448] [client 127.0.0.1:34570] Timeout when reading response headers from daemon process 'myapp' : /home/<me>/webapps/<myapp>/<ProjectName>/<myapp>/wsgi.py
What does this mean and how to fix it? The only thing I changed in the settings.py file is moving several variable names. I can still successfully interact with the application
python2.7 manage.py shell
But I canβt get to it on the Internet and not use the API.
EDIT: Here is my wsgi.py file:
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "<myapp>.settings") application = get_wsgi_application()
Nick
source share