简体   繁体   中英

Heroku DEBUG = False ==> 500 Error

I have read all questions on this site and all other tutorials on the web and nothing is working for me, and I'm really thinking of just dropping heroku all together.

here's my issue, when I set DEBUG to False, I get a 500 error, but I can still access my admin page, normally.

my heroku settings is as follows

from base import * 
import dj_database_url

from os.path import abspath, basename, dirname, join, normpath
from sys import path
from memcacheify import memcacheify

CACHES = memcacheify()

# Allow all host headers


DATABASES['default'] =  dj_database_url.config()
SITE_ID = 3

DEBUG = False
ALLOWED_HOSTS = ["*"]

I have tried allowed hosts to be my-herokuapp.herokoapp.com and to be localhost, and localhost ip. I'm out of ideas and I have no idea why it's not working.

如果本地ALLOWED_HOSTS = ['localhost','127.0.0.1']否则ALLOWED_HOSTS = ['web.ru']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM