Re: Site Framework

2014-07-23 Thread Santiago Lamora
2014-07-23 12:52 GMT+02:00 Akshay Mukadam : > Why do we use Site Framework in django > https://docs.djangoproject.com/en/dev/ref/contrib/sites/#how-django-uses-the-sites-framework -- You received this message because you are subscribed to the Google Groups "Django users" group

Site Framework

2014-07-23 Thread Akshay Mukadam
Why do we use Site Framework in django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this g

Re: Overriding save() + site framework = nothing changed when clicking save in the admin

2011-05-12 Thread ksamuel
I got some help on the Django IRC channel: The anwser is that django save m2m relationship in the admin by calling 'clear' on it, then setting it. I means that the form destroy any attached data to the object then add the ones in you entered in the admin. It works outside the admin because we don

Overriding save() + site framework = nothing changed when clicking save in the admin

2011-05-12 Thread ksamuel
I overrided the save method of one of my model to it sync its sites with its parent sites: def save(self, *args, **kwargs): ret = models.Model.save(self, *args, **kwargs) if self.id: for site in self.parent.sites.all(): self.sites.add(site.id) This code work, except

how to provide fixtures for django site framework?

2009-05-13 Thread tzangms
I read the django document, I know how to create fixtures for app, but how can I provide initial_data for django site framework? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: a question about site framework

2007-08-01 Thread gt7658b
Kai: I was worrying about how to use the django database api to do site related queries. I mean how do I simply retrieve articles of a site without having to use the custom query. Harry On Aug 1, 9:36 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > Hi Harry, > > On 8/2/07, gt7658b <[EMAIL PROTECT

Re: a question about site framework

2007-08-01 Thread Kai Kuehne
Hi Harry, On 8/2/07, gt7658b <[EMAIL PROTECTED]> wrote: > > Kai: > > Thanks for the suggestions. In this case, my Article will have > relationship with category, not directly with site. Will I still be > able to take advantage of the functions of site framework? I do

Re: a question about site framework

2007-08-01 Thread gt7658b
Kai: Thanks for the suggestions. In this case, my Article will have relationship with category, not directly with site. Will I still be able to take advantage of the functions of site framework? Harry On Jul 31, 9:45 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > ManyToMan

Re: a question about site framework

2007-07-31 Thread Kai Kuehne
ManyToManyField maybe is way better. Sorry, its late. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this

Re: a question about site framework

2007-07-31 Thread Kai Kuehne
Hi, On 8/1/07, Hai Dong <[EMAIL PROTECTED]> wrote: > > Hello: > > I got a question. What if I have two sites, and each site has several > categories (where articles belong to). For such kind of case what is the > best way of utilizing the site framework. What about a

a question about site framework

2007-07-31 Thread Hai Dong
Hello: I got a question. What if I have two sites, and each site has several categories (where articles belong to). For such kind of case what is the best way of utilizing the site framework. Thanks, Harry --~--~-~--~~~---~--~~ You received this message because

Re: Site framework

2007-07-16 Thread Glebb
On 12 heinä, 05:30, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/11/07, Glebb <[EMAIL PROTECTED]> wrote: > > > I'm not aware of anything that would be causing this sort of problem. > To help you debug, we will need to see some actual code - 'it > complains' isn't really that helpful as

Re: Site framework

2007-07-11 Thread Russell Keith-Magee
On 7/11/07, Glebb <[EMAIL PROTECTED]> wrote: > > Hi, I'm trying to use the site framework, and it works, but I just > have one problem. I have a form (from form_for_model for example) > which represents an object which has a site foreign key. The site > selection show

Site framework

2007-07-11 Thread Glebb
Hi, I'm trying to use the site framework, and it works, but I just have one problem. I have a form (from form_for_model for example) which represents an object which has a site foreign key. The site selection shows up just fine in the form. But when I try to submit it, it complains abou