Re: Is there a tool to check which views are used?

2011-01-27 Thread Sven Broeckling
Hi, > I have inherited an old project which I believe has unused views > (useless code), does anyone know of a tool to check which views are > being used? I think it shouldn't be too hard to make one using resolve > but maybe there is one already or maybe I'm talking nonsense. > It doesn't have te

Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
> > I got another clue, it seems that the python process runs out of > > file handles. After 10k requests (via ab -c 1 -n 1) i got > > several "not found" io exceptions like "/dev/urandom not found", > > TemplateError: Template xy not found and this one : Error Opening > > file /path/to/geoip/G

[solved] Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
> > I got another clue, it seems that the python process runs out of > > file handles. After 10k requests (via ab -c 1 -n 1) i got > > several "not found" io exceptions like "/dev/urandom not found", > Some tempfile that isn't getting closed? Watch your /tmp size, for > instance. Normally if y

Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
> > i have a problem on a debian lenny machine which is not easy to > > track down. It started with Apache2 mod_wsgi crashes (segfault in > > libapr) after the migration from mod_python. The server crashes > > sporadic and everytime with another view called, but everytime > > after a while (2-7 Day

Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
Hi, i have a problem on a debian lenny machine which is not easy to track down. It started with Apache2 mod_wsgi crashes (segfault in libapr) after the migration from mod_python. The server crashes sporadic and everytime with another view called, but everytime after a while (2-7 Days, depending on

Re: Admin get_urls

2009-02-02 Thread Sven Broeckling
Hi, i also miss this function in trunk. I'm looking for a method to populate the admin with own views. Is it possible that this feature got lost some time ago? Im at the latest trunk Version, but i can't fint any line with get_urls in it in django.contrib.admin. [s...@troy django-trunk] cd django

Re: issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
> > {% for catetory in categorylist %} > If this is a cut-and-paste of your template, here's your error. Learn to > spell "category". :-) Oh how blind was that. Of course that was the problem, thanks a lot :) After fixing that i got an "always false" instead of "always true". The debug line wi

issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
Hi everyone, i use django for a small fun website, and it's really fun to create applications with it. Now i'm stuck with a behaviour i can't comprehend. I have a category list in my base template : --[snip]-- {% if categorylist %} Buc