differences between DEBUG = True and False in Django?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DEBUG=True
, if there is error, page will show details of error.DEBUG=False
, theALLOWED_HOSTS
ofsettings.py
will work, you should take carefully to set it.media
andstatic
will not provide access forDEBUG=False
, you have to provide them with the help of webserver, likeNginx
orApache
.