[Pony] Per app settings

2008-10-23 Thread shabda.raaj
My project is, project/ blog/ forum/ wiki/ setting.py Now so all my views from blog/ must have the Blog object, all views from forum should have Forum object, all views from wiki should have Wiki object. So in settings.py I can have TEMPLATE_CONTEXT_PROCESSORS = ( 'wiki_contextpro

Making PROFILE_DATA_DIR in profiler-hotshot a settings variable

2008-04-06 Thread shabda.raaj
The code profiler-hotshot makes PROFILE_DATA_DIR a hardcoded variable. Should not this be a setting.py variable which can be customized? [1]http://code.djangoproject.com/browser/django/trunk/django/core/ handlers/profiler-hotshot.py --~--~-~--~~~---~--~~ You receiv

Possible bug with m2m fields

2008-01-26 Thread shabda.raaj
Should for a M2M field ModelClass.objects.all() be same as ModelClass.objects.filter(some_m2m = some_m2m) UNION ModelClass.objects.exclude(some_m2m = some_m2m)? If yes then probably there is a bug. To test define a model class as in [1]. Do the tests like in [2]. Check that .all() does not give s

Object name for object_list generic view

2008-01-22 Thread shabda.raaj
If we over ride the template name for object_list view, by using template_object_name parameter, this adds a _list to the value specified in the paramater. Since this is a manual override adding a _list to the name seems weird. I lost some time today for this, so wondering if this might be gotcha

The secret_key is settings.py

2008-01-12 Thread shabda.raaj
When we run django-admin.py, it generates SECRET_KEY and writes that value. Now if we create some apps and these apps are downloaded and used as-is by the users they end up sharing the SECRET_KEY. That setting recommends that "# Make this unique, and don't share it with anybody." Wont it be better

How to stop spam on our groups

2008-01-05 Thread shabda.raaj
In some of the groups like turbo gears I see a policy where the first time posters post are held for moderation, and once they are approved the posters can then post without any moderation. This is what the turbogears group[1] says. "New member posts' are held for moderation in order to avoid spam

Re: Is there a simple way I can find which files still use oldforms, and have no patch?

2008-01-05 Thread shabda.raaj
o import forms" > grep -n -R "import django.forms" > > Hope it help ;) > > El sáb, 05-01-2008 a las 00:41 -0800, shabda.raaj escribió: > > > I submitted ticket and patch forhttp://code.djangoproject.com/ticket/6318, > > but that is a duplicate ofhttp://code

Is there a simple way I can find which files still use oldforms, and have no patch?

2008-01-05 Thread shabda.raaj
I submitted ticket and patch for http://code.djangoproject.com/ticket/6318, but that is a duplicate of http://code.djangoproject.com/ticket/6083 . I would like to work on moving files from oldforms to newforms, How can I find out which files in newforms-admin branch have no patch against them, so

Some built in views still using the oldforms library

2008-01-02 Thread shabda.raaj
Built in views like django.contrib.auth.views.password_change still use the oldforms library. Is this due to some design decision or is it this way because nobody has yet converted them to newforms? How can I get the list of the built in views which still uses old forms, is any ticket tracking thi

Would a web search be a good addition to the contribs framework?

2007-10-01 Thread shabda.raaj
It looks to me that a api to get web search functionality in Django would be good idea. For example, I generally want to keep track of the pages linking to my sites. Similarly being able to search from inside of django might be useful in many cases. Would a web search be a good addition to the con