Re: templates for newbies

2005-10-23 Thread stava
Adrian Holovaty wrote: > On 10/22/05, stava <[EMAIL PROTECTED]> wrote: > > Do you have a similar trick for the object list view? > > Sure! To view the automatically-generated template for the object list > view, find the line "t = > loader.get_template_from_string(''.join(raw_template))" (line 492

Re: templates for newbies

2005-10-23 Thread stava
Adrian Holovaty wrote: > On 10/22/05, stava <[EMAIL PROTECTED]> wrote: > > Do you have a similar trick for the object list view? > > Sure! To view the automatically-generated template for the object list > view, find the line "t = > loader.get_template_from_string(''.join(raw_template))" (line 492

Re: Apps and 'subapps', or how closely to couple parts of a site

2005-10-23 Thread Ksenia Marasanova
2005/10/23, Jeffrey E. Forcier <[EMAIL PROTECTED]>: [snip] > So, I'm curious what the rest of you would do in this situation. Is it > better to keep things 'logically' organized, at the possible expense of > ease-of-coding (e.g. the ability to use generic views) and possible > overcrowding of temp

Re: no one-to-many methods?

2005-10-23 Thread Sean Cazzell
Awww crap - Adrian is right, I am smoking crack. I ran into the same problem when playing with the django models in the python shell after adding a new foreign key relationship. I changed the import statement and reloaded the shell and the problem went away. In retrospect it is now obvious

Using the manipular for timestamp fields

2005-10-23 Thread shadowfox
Hi all, Can someone give me directions to render fields of type timestamp in manipulators? Preferably rendered using the nice calendar control a'la in the django admin. Thanks, Will

Searching items with (ManyToMany+something else) relations

2005-10-23 Thread SZEKERES Istvan
Hi, This is a simplified example about what I want to do. There are restaurants, they have categories (e.g. pizzeria, vegetarian, etc.) and a city the restaurant is in. I have the following model (simplified): class Category(meta.Model): ... class City(meta.Model): ... class R

Re: Searching items with (ManyToMany+something else) relations

2005-10-23 Thread Adrian Holovaty
On 10/23/05, SZEKERES Istvan <[EMAIL PROTECTED]> wrote: > Now how can I select all the restaurants that belong to a category and are > in a given city? > > To get the restaurants from a city I can do: > r = restaurants.get_list (city__id__exact=n) > > To get the restaurants belonging to a specif

Use multiple cache backends?

2005-10-23 Thread cmars232
It is possible to use multiple cache backends with django? For example, I might want to use memcached for page output caching, and locmem:/// for custom low-level access to store long-lived large data objects and custom DB connections within my application. So, could I set memcached as my CACHE_

Re: Use multiple cache backends?

2005-10-23 Thread Eugene Lazutkin
AFAIK, it is possible. Obviously you should use low-level API, which is suitable for what you described. "cmars232" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > It is possible to use multiple cache backends with django? > > For example, I might want to use memcached for page