You don't say what your front end is.  There are ways to use pdb with
apache, look for advise on the modwsgi site.

But if you are in production, rather than just bringing up the instance
that will be production, you may not want to interrupt.

Be sure that you can't reproduce the problem in the development server.
You can get debug turned off htere.

In the hard cases you need to increasing logging in the suspect code,
whether by use of Django's logging or by writing to a file with explicit
code.  Then you insert things in code that should have been reached, log
variables, including object attributes, that are interesting, and do a
binary search for the point where things differ from expectations.
(Actually, the first few logs, or even the planning of their placement,
will focus your attention sufficiently to see where the code doesn't meet
the design.)

On Mon, Jan 4, 2016 at 12:33 PM, Web Architect <pinak...@gmail.com> 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/c4f16aba-f0e0-4aae-a6c0-1513571c7a97%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c4f16aba-f0e0-4aae-a6c0-1513571c7a97%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/CAB%2BAj0vHhTq8zS9Vxp-K_odieoYTh_wia0%2BV_mfCXd%3D%2B%3DnywqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to