Re: How do I decode a string that it is received by a filter ???

2011-04-26 Thread Alendit
Django docs say to set Apaches locale correctly http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi Would mean to put export LANG='en_US.UTF-8' export LC_ALL='en_US.UTF-8' into /etc/apache2/envvars. -- You received this message because you are subscribed to the Google Groups "Djang

Re: {{ STATIC_URL }} and RequestContext()

2011-04-26 Thread Alendit
template. Would look much cleaner to me, separation of concerns etc. Alendit -- 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 e

Re: How to write a view that accesses a method over all objects in a given model?

2011-04-26 Thread Alendit
n also use django.db.models.get_model, which returns a model class from a app_label, model_name tuple, although i would only use it when the model names is not known at the compiling time. Hope it helps. Alendit. -- You received this message because you are subscribed to the Google Groups "Django u

Re: Newbie Problem with Django reverse()

2011-03-27 Thread Alendit
Hi, if only one url is bound to a controller there is no need for a name argument. When you are specifying a name for an expression and it have got the same name as the controller a conflict arise. Just drop the name argument and it should work. Alendit. On 27 Mrz., 09:54, Ajay wrote: > I

Re: Ajax form in django

2011-02-17 Thread Alendit
Try adding something like $("#feedback_form").attr("action", "") to your create_note function, so that action is reset if javascript gets executed. Alendit -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: How to define each model in its own file

2011-02-07 Thread Alendit
Hi, as far as i know you also have to define the app_label as Meta parameter like this class Meta: app_label = "your_app_name" Regards, Alendit. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Automatic parent link with multi-table inheritance

2011-01-18 Thread Alendit
efines a parent_link field, but i wonder, if there is an easier way. Alendit -- 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 e