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