To populate select field you have many options.
First is using ModelChoiceField.
The ModelChoiceField have an argument named queryset, you can use like this
example
provincia = forms.ModelChoiceField(queryset=Provincia.objects.all() ..)
If you can't have a FK of Provincia table you can use a C
Hello !I'm working in a project using django an postgresql and probably i
will manage a big model table.
I have a few questions about the limits of the primary key in django model.
By default the pk was defined in postgresql as a SERIAL NOT NULL with the
integer data type.
I search for the limits
Or use prefix
theform(request.POST,prefix='form1Prefix')
theform2(request.POST,prefix='form2Prefix')
2008/12/18 Stefan Tunsch
>
> You simply have to avoid using the same field name in the two forms.
>
> On 12/18/08, Alfredo Alessandrini wrote:
> >
> > Hi,
> >
> > can I use two form in the same
You are in thre wrong list.
This is the django-users list , no the django-no-users list.
2008/9/10 Krommenaas <[EMAIL PROTECTED]>
>
> Thx for the replies.
>
> This is still unclear though:
> > > 4) I read somewhere in the documentation that you can use other
> > > templating systems than Django's
I' currently working in/with Dajax.
http://code.google.com/p/dajaxproject/
I hope it helps you.
--
neo2001[at]gmail.com
jorge[at]thecodefarm.com
neo[at]art-xtreme.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
You can use topological methods (
http://geodjango.org/docs/geos.html#topological-methods )
polygon.union( other_polygon )
Hope it's help you.
2009/8/20 GRoby
>
> Hello,
>
> How can I convert a list of Polygon objects into a Single Polygon
> Object utilizing GeoDjango? I think I need to use t
Hello Rubens,I have similar problems months ago.
In my application there is a ManyToMany relation within two classes (A and
B) let's name the relation as "friends".
The application works fine but in unpredictable situations rows from the
auxiliary table that makes the relation disappears randomly.
2009/5/17 zayatzz
>
> Thanks
>
> I actually tried that form.cleaned_data at one point but then i got
> error that was something like: form object has no cleaned_data
> attribute.
Call
if form.isvalid():
# use cleaned_data
Jorge
>
>
> Anyway, its working now - thanks alot.
>
> btw... wha
>
>
> Call
>
if form.*is_valid()*: Sorry
>
> # use cleaned_data
>
> Jorge
>
>
>>
>>
--
neo2001[at]gmail.com
jorge[at]thecodefarm.com
neo[at]art-xtreme.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
Hello Marc,
You can render a template into an string.
from django.template.loader import render_to_string
my_template = render_to_string('template.html',{'some':'data'})
If you want to send the list of objects to the browser you can use
serialization into json:
http://docs.djangoproject.com/en/d
>
>
> To use ajax you need to be able to make AJAX connections through
> javascript and make your view.py code to return the right format
> depending on the request (html, xml, json). So theres nothing special
> you need to install.
>
As Anton says, you didn't need any special library to use ajax
mes, etc.
>
> Adam
>
>
> >
>
--
Benito Jorge Bastida
jo...@thecodefarm.com
thecodefarm SL
Av. Gasteiz 21, 1º Derecha
01008 Vitoria-Gasteiz
http://thecodefarm.com
Tel: (+34) 945 06 55 09
--~--~-~--~~~---~--~~
You received this message because you are subscri
roup, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
Benito Jorge Bastida
jo...@thecodefarm.com
thecodefarm SL
Av. Gasteiz 21, 1º Derecha
01008 Vitoria-Gasteiz
http://thecodefarm.com
Tel:
eceived this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options,
ver/yours ip.
http://server-ip:8000/
--
Benito Jorge Bastida
jo...@thecodefarm.com
thecodefarm SL
Av. Gasteiz 21, 1º Derecha
01008 Vitoria-Gasteiz
http://thecodefarm.com
Tel: (+34) 945 06 55 09
--
You received this message because you are subscribed to the Google Groups
"Django users" g
this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
Benito Jorge Bastida
jo.
})
> >
> > > I don't know what to do.. Can anyone help me...
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send em
instructions.
>
> Best regards
> Ogi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send emai
Linode 512 here, excellent service.
2011/5/25 Stuart MacKay
> I use a Linode 512 VPS hosted in London. So far it has been awesome.
>
> Stuart MacKay
> Lisbon, Portugal
>
>
> I know this question has been asked before, but the most recent thread
>> I can find in the archives is from 2007, and pr
oup, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
Benito Jorge Bastida
jo...@thecodefarm.com
thecodefarm SL
Av. Gasteiz 21, 1º Derecha
01008 Vitoria-Gasteiz
http://th
>
> Does anyone know if it matters what version I install of these
> packages?
> (I'm using version 2.6.6 of python and 1.2.3-1ubuntu0.2.10.10.1 of
> python-django.)
Hi,
Probably the problem is that you are using an old django-dajaxice version.
0.1.5 had some bugs related to the function registra
Hi,
You should include your desired Dajax implementation. You can choose between
Prototype, jquery, dojo etc...
The django-dajax installation steps are here [1]. As you can see in one of
the final steps "Include dajax in your ", you should add a new script
line to include that JS, also you should
gt; them.
>
>
> On Wed, Mar 30, 2011 at 1:01 AM, Jorge Bastida wrote:
>
>> Hi,
>>
>> You should include your desired Dajax implementation. You can choose
>> between Prototype, jquery, dojo etc...
>>
>> The django-dajax installation steps are here [
/en/dev/ref/templates/api/#the-render-to-string-shortcut
Hope this helps you,
Jorge Bastida.
--
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
...
Hope this helps you,
Jorge Bastida.
--
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 group, send email to
django-users+unsubscr...@goo
25 matches
Mail list logo