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')
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With