Re: populating forms using models

2008-11-01 Thread Jorge Bastida
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

Django Model key limits

2008-11-01 Thread Jorge Bastida
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

Re: two forms in the same view

2008-12-18 Thread Jorge Bastida
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

Re: Django questions

2008-09-10 Thread Jorge Bastida
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

Re: Ajax in Django

2009-08-12 Thread Jorge Bastida
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

Re: GeoDjango, Convert List of Polygon Objects to a Single Polygon Object

2009-08-20 Thread Jorge Bastida
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

Re: ManyToMany relationship being 'lost'?

2009-04-27 Thread Jorge Bastida
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.

Re: Form trouble

2009-05-17 Thread Jorge Bastida
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

Re: Form trouble

2009-05-17 Thread Jorge Bastida
> > > 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

Re: Django with ajax

2009-06-02 Thread Jorge Bastida
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

Re: using ajax with django

2009-10-19 Thread Jorge Bastida
> > > 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

Re: Prevent brute-force password attacks?

2009-11-09 Thread Jorge Bastida
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

Re: Google maps routes in geodjango

2010-01-25 Thread Jorge Bastida
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:

Re: Problem with Django webserver on HP

2010-01-28 Thread Jorge Bastida
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,

Re: Problem with Django webserver on HP

2010-01-28 Thread Jorge Bastida
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

Re: Dajaxice and geodjango problem

2010-02-03 Thread Jorge Bastida
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.

Re: Dajaxice and geodjango problem

2010-02-03 Thread Jorge Bastida
}) > > > > > 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

Re: kss with django

2010-02-04 Thread Jorge Bastida
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

Re: UK-based Django Host?

2011-05-25 Thread Jorge Bastida
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

Re: Full text search with PostgreSQL and Django

2010-12-17 Thread Jorge Bastida
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

Re: Dajaxice Unresolved Import

2011-02-16 Thread Jorge Bastida
> > 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

Re: A very simple dajax code to show alert window not working

2011-03-29 Thread Jorge Bastida
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

Re: A very simple dajax code to show alert window not working

2011-03-29 Thread Jorge Bastida
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 [

Re: Rendering only a portion of the page

2011-04-02 Thread Jorge Bastida
/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

Re: Dajax, what do you think about it?

2011-04-02 Thread Jorge Bastida
... 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