Den 07/10/2014 kl. 12.57 skrev Helgi Örn Helgason <sacredea...@gmail.com>:
> Hi! > I am quite new when it comes to Django and Python. I am responsible for a > rather disfunctional Django website package which is rather messy (I have > this confirmed by an experienced Django/Pyton developer who took a look at > it). The system is in use serving a school organisation. > > My most acute problem right now is to find a way to trace why a page on our > web suddenly quit showing up, going to the url just loads for a while and > then stops with nothing showing up, just blank white. > This page was working perfectly before we did a supervisorctl restart after a > power failure, and it is still visible in Django admin. > The rest of the web is working properly. > > What can I possibly do to find out what's causing this? How can I trace > errors like this one in a Django system? The simplest solution is to insert a breakpoint (https://docs.python.org/2/library/pdb.html) at the beginning of your view, start the development server and load the problematic URL in a browser. Then go to the terminal and single-step through your view to find out where it's stalling. If you page uses javascript, it's possible that Django loads the page correctly and the problem lies in your javascript code instead. Erik -- 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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A4E7C87B-19FA-49B9-AF0D-28341E8A6368%40cederstrand.dk. For more options, visit https://groups.google.com/d/optout.