python - heroku deployment busted, operational error -
i getting error message after deploying heroku (in web browser):
operationalerror @ /accounts/register/ not connect server: connection refused server running on host "127.0.0.1" , accepting tcp/ip connections on port 5432?
in settings.py
have:
databases = { 'default': { 'engine': 'django.db.backends.postgresql_psycopg2', 'name': 'mydata', 'user': [a name], 'password': [a password], 'host': '127.0.0.1', 'port': '5432', } }
i see whining in heroku logs of:
2015-04-25t07:53:35.555555+00:00 heroku[router]: sock=client at=error code=h18 desc="request interrupted" method=get path="/accounts/register/" host=myapp.herokuapp.com request_id=[long string] fwd="43.55.555.555" dyno=web.1 connect=1ms service=119ms status=503 bytes=13000 2015-04-25t07:56:49.555555+00:00 heroku[web.1]: state changed starting 2015-04-25t07:56:52.555555+00:00 heroku[web.1]: stopping processes sigterm
but more after that. last series of messages ends with:
2015-04-25t13:30:06:555555+00:00 heroku[web.1]: state changed starting
and 6 summaries, statuses 301
, 404
, 404
, 292
, 404
, 404
my wsgi.py
unchanged:
import os os.environ.setdefault("django_settings_module", "dating_site.settings") django.core.wsgi import get_wsgi_application application = get_wsgi_application()
i added full path in proc:
web: gunicorn mysite.wsgi --pythonpath ../mysite --log-file -
by ../mysite
here saying main mysite
directory w/ settings.py
, wsgi.py
, , few other goodies.
when go webpage of myapponheroku/accounts
pretty index page, when click on "register" error @ top of entry...what baffles me? accounts/login
renders form csrf_token
required...it loads fine! accounts/register
renders form of course csrf required...it grumbles could not connect server: connection refused
. interestingly enough, attempting login on login page testing username , password yields literally same error if replace accounts/register
accounts/login
top of page ('operational error' yada yada)
what can cause/fix problem strange? thank django stars,
cody
yeah each time make change , want see live in heroku need git push heroku master
. long have outgoing change set.
Comments
Post a Comment