Strange Behavior from the Django Admin (following tutorial on a shared server)

136 views
Skip to first unread message

Ed Volz

unread,
Jan 21, 2015, 7:13:45 AM1/21/15
to django...@googlegroups.com
Hi all,

New to Django so I was following along with the tutorial and can get to the point of logging into the Administration portal (the main page works as well).  Django is running with passenger in a virtualenv (python 2.7) on a shared host.  I immediately receive a ERR_EMPTY_RESPONSE   when I click log in, regardless of whether or not the credentials are correct.  The db records a session on a correct log in even though the ERR_EMPTY_RESPONSE remains.  I've confirmed the user is both is_active and is_staff using the shell.  

What's puzzling me is that the log in page loads the css files from the STATIC_URL just fine, but there's nothing once served up the form is submitted.  Any help would be appreciated.


passenger_wsgi.py file:
#!/usr/bin/env python2.7
import sys,os
# Tell Passenger to run our virtualenv python
INTERP
= "/home/<site>/djangoenv/bin/python"
if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)
# Set up paths and environment variables
sys
.path.append(os.getcwd())
os
.environ['DJANGO_SETTINGS_MODULE'] = 'mynewsite.settings'
# Set the application
import django.core.handlers.wsgi
# Use paste to display errors
from paste.exceptions.errormiddleware import ErrorMiddleware
from django.core.wsgi import get_wsgi_application
application
= get_wsgi_application()
application
= ErrorMiddleware(application, debug=True)



Collin Anderson

unread,
Jan 23, 2015, 1:54:13 AM1/23/15
to django...@googlegroups.com
Hi,

What's likely happening is that django or passenger is crashing. Is there any log available?

Collin
Reply all
Reply to author
Forward
0 new messages