Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django admin working only debug true mode?

Tags:

python

django

I have problem with DEBUG mode. If I set the DEBUG=True,Then my django admin dashboard working perfectly. But when I changed the DEBUG=False,Then it gives the following error,

A server error occurred.  Please contact the administrator.

Note: I am currently running my app in dev mode. But I don't need to run my app in DEBUG=True mode.

like image 457
codeimplementer Avatar asked Sep 12 '26 18:09

codeimplementer


1 Answers

Could it be ALLOWED_HOSTS? This trips up lots of people when they finally deploy and turn off DEBUG for the first time. https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts

like image 200
Craig Labenz Avatar answered Sep 14 '26 08:09

Craig Labenz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!