> What you're doing should be fine, in terms of whether it works or not. 
> However, I'd strongly recommend against passing locals(). While it may seem 
> to violate DRY to do anything else, experience has shown me that it makes 
> maintaining the code a lot harder in the long run, as it's not immediately 
> obvious exactly what is being passed to the template. It's obvious what's 
> being passed from the tiny view you've got there, but as your views grow, 
> this will become a problem.
>
The error is solved now, and I will keep your advice about locals() in
my mind. Thanks
-- 
Harbhag Singh Sohal
http://harbhag.wordpress.com

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to