Re: Writing your first Django app
what you have just done until now ??? On Mon, 2008-12-29 at 05:52 -0800, kallep wrote: > This is my first question here. I find it extremely difficult to > follow the "Writing your first Django app tutorial". I'm now stocked > on the third part. Is it possible to see the finished source code > somewhere? The main difficulty is to understand what code are > supposed to go where. > > > > Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Limiting HTTP request size
my friend i can suggest write a custom FileUploadHandler and improve the method receive_data_chunk(self, raw_data, start) and check the data that comes into your server, search in the documentation about write a custom FileUploadHandler, if need more help write now!!! On Fri, 2008-12-19 at 05:48 -0800, Andreas Gustafsson wrote: > What's the recommended way to protect a Django application against > denial of service via huge file uploads or huge POST requests in > general? If I set the LimitRequestBody option in the Apache > configuration file, mod_python throws an ominous-looking exception > when the limit is exceeded: > > SystemError: ../Objects/stringobject.c:4089: bad argument to > internal function > > I assume that's a symptom of the bug described in issues.apache.org/jira/browse/MODPYTHON-240>. > -- > Andreas Gustafsson, g...@gson.org > > > > Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
PDF creation!!!
Please can any one give me good references about tools for create PDF reports, graphs in Django besides RepoLab thanks Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: selected ModelMultipleChoiceField
That's rigth you hit the point followed your advice and with these lines i resolved my problem, got modelform filtered by a custom query yaho the model (part of it) class Indicacion(models.Model): ''' @author: Abel Bolaños Martínez @contact: [EMAIL PROTECTED] ''' emisor = models.ForeignKey(Emisor) responsables = models.ManyToManyField(Responsable) participantes = models.ManyToManyField(Participante,blank=True) the form (the hot line): class indicacionForm(ModelForm): ''' Formulario del modelo que mapea a la clase Indicacion @author: Abel Bolaños Martínez @contact: [EMAIL PROTECTED] ''' class Meta: model = Indicacion def __init__(self, *args, **kwargs): super(indicacionForm, self).__init__(*args, **kwargs) self.fields['responsables'].queryset = devuelveTodosNoBorrados(Responsable) (this is a personal query) self.fields['emisor'].queryset = devuelveTodosNoBorrados(Emisor) (this is a personal query) self.fields['participantes'].queryset = devuelveTodosNoBorrados(Participante) (this is a personal query) On Mon, 2008-12-08 at 21:00 +0100, Håkan Waara wrote: > Yes, that's what my reply to you was about. The below examples work > for ModelChoiceField, you only need to use the same technique on a > ModelMultipleChoiceField, where I - like I wrote - guess you can use a > tuple of initial values, e.g. ("foo", "bar"). > > /Håkan > > 8 dec 2008 kl. 18.30 skrev Abdel Bolanos Martinez: > > > what I want is use ModelMultipleChoiceField with a queryset but I > > need that some of the of the generated be mareked > > as , > > > > Bite? > > > > > > On Mon, 2008-12-08 at 17:36 +0100, Håkan Waara wrote: > >> > >> If you want to set it to always the same values, you can use the > >> "initial" argument on your form field. > >> > >> Pseudo-example (haven't run the code, but it illustrates the > >> solution): > >> > >> class MyForm(forms.Form): > >> end = forms.DateField(label="Until", required=False, > >> initial="2009-11-12") > >> > >> > >> If you need to do it dynamically, for some reason. E.g, you don't > >> know > >> until you create the form, you can override the form's __init__ and > >> set it there. > >> > >> class MyForm(forms.Form): > >> end = forms.DateField(label="Until", required=False) > >> > >> def __init__(self, *args, **kwargs): > >> super(MyForm, self).__init__(*args, **kwargs) > >> self.fields['end'].initial = bar > >> > >> This works for fields with one value. For multiple preselected > >> values, > >> I don't know, but my first hunch would be to try to use a tuple/list > >> with initial values instead. > >> > >> HTH, > >> /Håkan > >> > >> 8 dec 2008 kl. 17.16 skrev Abdel Bolanos Martinez: > >> > >> > > >> > Hi, > >> > i'm new in django and i'm using ModelMultipleChoiceField and all > >> > works fine but i need to 'mark' o 'selected' some model objects > >> from > >> > the queryset > >> > > >> > have ever someone did something like that??? > >> > > >> > > >> > Abdel Bolaños Martínez > >> > Ing. Infórmatico > >> > Telf. 266-8562 > >> > 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. > >> ETECSA > >> > > >> > > > >> > >> > >> > >> > > > > Abdel Bolaños Martínez > > Ing. Infórmatico > > Telf. 266-8562 > > 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA > > > > > > > > > > Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: selected ModelMultipleChoiceField
what I want is use ModelMultipleChoiceField with a queryset but I need that some of the of the generated be mareked as , Bite? On Mon, 2008-12-08 at 17:36 +0100, Håkan Waara wrote: > If you want to set it to always the same values, you can use the > "initial" argument on your form field. > > Pseudo-example (haven't run the code, but it illustrates the solution): > > class MyForm(forms.Form): > end = forms.DateField(label="Until", required=False, > initial="2009-11-12") > > > If you need to do it dynamically, for some reason. E.g, you don't know > until you create the form, you can override the form's __init__ and > set it there. > > class MyForm(forms.Form): > end = forms.DateField(label="Until", required=False) > > def __init__(self, *args, **kwargs): > super(MyForm, self).__init__(*args, **kwargs) > self.fields['end'].initial = bar > > This works for fields with one value. For multiple preselected values, > I don't know, but my first hunch would be to try to use a tuple/list > with initial values instead. > > HTH, > /Håkan > > 8 dec 2008 kl. 17.16 skrev Abdel Bolanos Martinez: > > > > > Hi, > > i'm new in django and i'm using ModelMultipleChoiceField and all > > works fine but i need to 'mark' o 'selected' some model objects from > > the queryset > > > > have ever someone did something like that??? > > > > > > Abdel Bolaños Martínez > > Ing. Infórmatico > > Telf. 266-8562 > > 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA > > > > > > > > > > Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
no atribute instance in ModelMultipleChoiceField
Why ModelMultipleChoiceField has no atribute 'instance'? how can I select options in a ModelMultipleChoiceField Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
selected ModelMultipleChoiceField
Hi, i'm new in django and i'm using ModelMultipleChoiceField and all works fine but i need to 'mark' o 'selected' some model objects from the queryset have ever someone did something like that??? Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Best IDE for Django and python?
I think pydev + eclipse + aptana is the best choice, just configure correctly python PATH in pydev so the autocomplete works fine, debug your code with the extra option runserver 8080 --noreload works fine too, create external tools django commands, improve your pages with aptana, use firefox as your web-browser with addons FIREBUG installed (debug JavaScript, inspect HTML code, net speed). I used to work with Java but Python is relly good. On Tue, 2008-11-25 at 15:27 +0300, Nikolay Panov wrote: > I'm using just gvim + some plugins (help.vim, autocomplpop.vim, > snippetsEmu.vim, ...). As for me, this is quite enough. > > Have a nice day, >Nikolay. > > > > On Tue, Nov 25, 2008 at 11:27, DragonSlayre <[EMAIL PROTECTED]> wrote: > > > > Hey, I'm getting started with a friend in developing a site with > > Django, and we're both new to this, so I am wondering what people use > > to manage all their files, and for looking at documentation etc. > > > > Having come from a Java background, I'm used to great documentation, > > and suspect that Java is very much the leader in doc, and not the > > standard. > > > > I've used the pydev plugin for eclipse, but it seems extremely > > limited. > > > > How do you develop your django projects, and where do you go when you > > need to find documentation? > > > > > > > > > Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Which IDE do you choose with django?
Eclipse + Pydev + Aptana + SVN = Very good IDE On Mon, 2008-10-13 at 11:09 -0700, Django users wrote: > Geany, small, lighweight, fast, and also supports http, javascript, > etc > Supports plugins and has basic svn support > http://www.geany.org/ > > On Oct 12, 12:19 pm, zjffdu <[EMAIL PROTECTED]> wrote: > > I am a newbie of django, and want to know which IDE is suit for > > django? > > > > thank your > > > Abdel Bolaños Martínez Ing. Infórmatico Telf. 266-8562 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---