Re: Is Django deleting my python objects?

2011-12-26 Thread devbird
t instance.id a simple integer then? Seems it has a special meaning, and objects are collected after that. On Dec 26, 6:32 pm, devbird wrote: > It's very awkward: there's no strict relation between the dictionary > keys and the deleted objects, but the keys are deleted together

Re: Is Django deleting my python objects?

2011-12-26 Thread devbird
method, still I can't figure out why. On Dec 26, 6:17 pm, devbird wrote: > I'm running tests. > And I don't have any post_delete or pre_delete signal handler defined. > > On Dec 26, 6:02 pm, Javier Guerra Giraldez wrote: > > > > > > > > > On Mon

Re: Is Django deleting my python objects?

2011-12-26 Thread devbird
I'm running tests. And I don't have any post_delete or pre_delete signal handler defined. On Dec 26, 6:02 pm, Javier Guerra Giraldez wrote: > On Mon, Dec 26, 2011 at 11:09 AM, devbird wrote: > > dictionary > > is the attribute of a singleton object. It lives as long a

Is Django deleting my python objects?

2011-12-26 Thread devbird
I've a post_save handler method which stores values in a dictionary, like dictionary[instance.id] = some_value I was writing a post_delete handler to pop the value from the dictionary, when I found that the value had been already popped. I don't delete or pop the value anywhere else in the code.

Re: get_absolute_url and root url

2010-11-09 Thread devbird
Sorry, I was wrong. The url pattern must have a trailing slash. On Nov 9, 9:33 am, devbird wrote: > you should set the "root url" as '^$'(an empty string), without any > '/', and remove the slash from the url pattern regexp. > > On Nov 8, 2:07 pm, Dirk E

Re: get_absolute_url and root url

2010-11-09 Thread devbird
you should set the "root url" as '^$'(an empty string), without any '/', and remove the slash from the url pattern regexp. On Nov 8, 2:07 pm, Dirk Eschler wrote: > Hello, > > i've built an app which is based on Django's flatpages app. It reuses most of > its features including the FlatPageFallba