heroku - django debug false and internal server error -
im writing project using django.
while in development stage used debug=true
, want upload heroku production.
i set debug=false
, kept getting internal server error, further investigated , found need set allowed_hosts = ['localhost', '127.0.0.1']
, did..
i ran localhost still kept getting internal server error.
what doing wrong? cause can't figure out?
also, should put in allowed host heroku site?
thanks
try this
python manege.py collecstatic
remember static files directory when debug = true
no same when debug false
heroku uses whitenoise static files.
Comments
Post a Comment