[Django]-Enable Django DEBUG = True only for staff?

2👍

Setting up Django logging in a correct way is indeed an useful advice.

You can also configure Django to email site administrators when a server error occurs. In this way you can be notified in real-time when a server error occurs. In the email Django will put some useful information for debugging (very similar to those shown if DEBUG=True).

For details see the official documentation on the topic.

1👍

set up django logger:

https://docs.djangoproject.com/en/1.7/topics/logging/

it is an "industry standard" for these things, and it gives you a pretty wide set of options for logging, from severity level, to distribution method

👤dgmt

Leave a comment