0

After changing Debug=True to False the app started to crash on localhost. And there's no way to find out what causes the error, because there's no error text being shown anywhere: neither in the browser, no in the terminal. That's it.

In setting.py I do have ALLOWED_HOSTS = ['*'], by the way.

Django 1.8, python 2.7.

1 Answers1

1

Put this in your settings.py to see your error :

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'filters': {
        'require_debug_false': {
            '()': 'django.utils.log.RequireDebugFalse'
        }
    },
    'formatters': {
        'verbose': {
            'format': '[contactor] %(levelname)s %(asctime)s %(message)s'
        },
    },
    'handlers': {
        # Send all messages to console
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
        },
    },
    'loggers': {
        # This is the "catch all" logger
        '': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
    }
}

More info on logging configuration here.

Also, you can have a look at this related question.

Community
  • 1
  • 1
Charlesthk
  • 9,394
  • 5
  • 43
  • 45