Re: accessing to a field value in the template

2008-12-22 Thread GaRaGeD Style
> That particular value comes from one of three sources. In order of > highest priority to lowest, they are: > >(1) Data submitted to the form (for redisplaying submitted data >for errors). >(2) Initial data provided to the form class >(3) Initial data provided to t

ModelForm and dojo form validation

2009-07-09 Thread GaRaGeD Style
This question applies to any other JavaScript validation tool, but I'm doing an app that uses dojo, and i'm trying to put client-side validation smartly, but obviously not achieving it :) Is there any way to add extra fields to the form's HTML created by ModelForm ?? I'm specially concerned about

Re: RV: photos sexy

2010-02-26 Thread GaRaGeD Style
totally agree :) -- $ echo "scale=100; 4*a(1)" | bc -l -- 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 email to django-users+unsubscr

cache views (decorator not working)

2007-02-27 Thread GaRaGeD Style
Hi all I'm really not good at python, and hence not good at django, but I really love both :) I have spent a few hours trying to understand why this works: -- @login_required def object_list(request, model, page): try: return list_detail.object_list( r

I18N on loader.get_template not working for me

2007-02-28 Thread GaRaGeD Style
I have a testing view that uses loader.get_template/render(context) combo, and in settings.py I have put: TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.auth", "django.core.context_processors.debug",

Re: I18N on loader.get_template not working for me

2007-02-28 Thread GaRaGeD Style
> Are you using a RequestContext() class when you render your template? If > you are just using a Context() class, you won't see any effect from > context processors. > > If what I just wrote seems like a foreign language (and a quick search > of the djangoproject.com doesn't clear it up for you),