What I do is to log things in log files. All exceptions are logged in
error.log files and I've enabled admin mail which sends me an email
whenever there is an exception.
So basically logs and emails are quite helpful in debugging and makes it
smooth.

On Wed, 6 Jan 2016 at 10:20 Web Architect <pinak...@gmail.com> wrote:

> Thanks all for the responses and I would certainly consider them for
> production level debugging. I understand that application level debugging
> could be achieved by various logging mechanisms or tools.
>
> But one of my main concern is the platform level debugging where in if
> anything goes wrong with any package. For example, recently when I had set
> DEBUG=False, the backend was throwing HTTP 500. I was completely clueless
> what was happening. After deep debugging in the code, I figured out that
> 'compress js' that was being used in templates - it seemed was not being
> supported when DEBUG=False. It took some time to figure this out. Had there
> been a log or some mechanism, debugging would have been lot easier and
> quicker.
>
> On Monday, January 4, 2016 at 11:03:26 PM UTC+5:30, Web Architect wrote:
>>
>> Hi,
>>
>> Is there a way to debug Django when DEBUG is set to False in settings.py
>> (for example on production)?
>>
>> The reason for asking the above is if we face any issue with DEBUG set to
>> False and if we need to debug.
>>
>> We are new to Django and we are building an ecommerce platform based on
>> Django.
>>
>> Would appreciate if anyone could help with the above?
>>
>> Thanks.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1550f31d-bcf7-430a-849f-f219e5ba3077%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1550f31d-bcf7-430a-849f-f219e5ba3077%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAByqUgi3XW5pYp8x7gcfqTc8avJ0NJ8Mj8JKVhizH20cUzW4MQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to