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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo