Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying to heroku changing DEBUG = False results in 500 error

Im using Django 1.9 and Python 3.4.3. When changing DEBUG = False on my app I'm getting a 500 error on all pages of my app.

Note: The Django admin page results in a 500 error as well. Some other posts reported not getting this error on the admin page and I am. I have also tried everything in this post

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/

STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'

STATIC_URL = '/static/'

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

STATICFILES_DIRS =(
    os.path.join(BASE_DIR, 'static'),
)

MEDIA_URL = '/media/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
like image 962
Groovietunes Avatar asked Feb 08 '23 08:02

Groovietunes


1 Answers

It will be better if you add the ADMINS to the settings:

ADMINS = (('Your name', 'Your@EMAIL'),)

With that you'll receive a better report when the error occur that you can use to debug the error.

Hope it helps

like image 110
ddalu5 Avatar answered Feb 12 '23 11:02

ddalu5