Re: Explicit default managers?

2008-11-24 Thread mrts
http://code.djangoproject.com/ticket/9676 created to track this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To un

How to use variables from settings.py and django session in Jinja2?

2008-11-24 Thread Honghai
Hi there, I tried to integrate Jinja2 with Django, and it is pretty straightforward actually. But I didn't figure out how to access these settings.py variables (django specific) and the django session in the Jinja2 template. Could somebody help me out? Thanks a lot! cheers, Honghai --~--~

How to use variables from settings.py and django session in Jinja2?

2008-11-24 Thread Honghai
Hi there, I tried to integrate Jinja2 with Django, and it is pretty straightforward actually. But I didn't figure out how to access these settings.py variables (django specific) and the django session in the Jinja2 template. Could somebody help me out? Thanks a lot! cheers, Honghai --~--~---

Re: How to use variables from settings.py and django session in Jinja2?

2008-11-24 Thread Karen Tracey
Please ask on the django-users mailing list. This one is for development of Django itself, not usage questions. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Denormalisation Magic, Round Two

2008-11-24 Thread Christian Schilling
I think it would be even nicer if the function passed into the decorator could actualy return the new value of the field, instead of assigning it and call save(). Currenty the function does two tasks: 1) figure out what needs to be updated "resolve dependenys" 2) calculate the new value maybe the

Re: Denormalisation Magic, Round Two

2008-11-24 Thread Christian Schilling
one more thing... On Nov 23, 12:00 pm, Andrew Godwin <[EMAIL PROTECTED]> wrote: > Additionally, your code loops over every model every time, whereas in > some cases you can detect which specific model needs updating (for > example, if you know that the field "planet" on the just-saved object is >

Ticket 8638: Provide setting to disable e-mail sending

2008-11-24 Thread Rob Hudson
Hi Django Devs, I saw that ticket[1] made it into the 1.1 list and I was drawn to it. I have a project that will be doing some mass sending of emails soon, so I could definitely use something more than what is currently there. Firstly, the title simply says it wants the ability to disable emails

Re: Using pysqlite2 instead of sqlite3 when desired

2008-11-24 Thread Matt Hancher
On Nov 18, 5:15 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-11-17 at 16:19 -0800, Matthew D. Hancher wrote: > > [...] > > > Options include: > > > A. Leave sqlite3 as the default, and add a configuration setting that   > > forces use of pysqlite2 if desired. > > > B. Always tr

Re: Using pysqlite2 instead of sqlite3 when desired

2008-11-24 Thread Malcolm Tredinnick
On Mon, 2008-11-24 at 18:20 -0800, Matt Hancher wrote: > On Nov 18, 5:15 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > On Mon, 2008-11-17 at 16:19 -0800, Matthew D. Hancher wrote: > > > > [...] > > > > > Options include: > > > > > A. Leave sqlite3 as the default, and add a configuration