Context processor or make custom tag

2009-02-11 Thread KrcK
Hi all, I'm new in this group and I have to say that my English is very poor so sorry. I've the follow problem, I want to put in one of my base templates (that it's include in main base template) a list of one model, for example a Category model that has a relationship with other model like Post

How can I get a queryset in new view from template?

2009-03-02 Thread KrcK
Hi, I would like to know how can I do the next. I want to put a queryset into a context and then use render_to_response() to render one template like example.html, which contains one form with some hidden fields. This form submits data to another url and I've to use another view to do it. The pro

Middleware or other way?

2009-03-06 Thread KrcK ---
Hi group, It´s possible that I can´t to explain yours very well my problem because it´s a complex problem (I think it) and my english is too poor but I´m going to try to do it. I´ve a problem and I´m not sure if create a middleware class is a good solution. I´ve one class that represents a set of

Diffents admin sites into the same project

2009-06-22 Thread KrcK
Hi group! I've a problem with AdminSite. I don't know how can I get 3 admin sites differents and if it's posible to do it. I've a project with two applications, and I want one admin site for each one and the other to manage the project and applications (at the project level). I've been readin

Re: Diffents admin sites into the same project

2009-06-23 Thread KrcK
w I've my three different admin sites. I didn't know this behavior but I like a lot! I want to learn about the Django Admin Site capabilities. Thanks Rusell! On Tuesday, 23 de June de 2009 14:06:24 Russell Keith-Magee wrote: > On Tue, Jun 23, 2009 at 5:55 AM, KrcK wrote: > > Hi

Re: Meta.widgets in ModelForm seems... ignored

2010-01-26 Thread KrcK ---
You can try this: class Fondo(models.Model): denominazione = models.CharField(max_length=200) storia= models.TextField(blank=True) class FondoForm(forms.ModelForm): storia = forms.CharField(widget=forms.Textarea) class Meta: model = Fondo I am not sure if this works. 2010/1/26