Re: CSRF problem with /i18n/setlang/

2011-07-11 Thread cjwalter
...what shall I say: problem solved. By simply using RequestContext instead of Context. Yes, the error message said so, but I somehow assumed that this concerns the i18l code and not my view... -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: CSRF problem with /i18n/setlang/

2011-07-11 Thread cjwalter
Yes, the internationalization part seems to be configured ok and appears working. It is really the CSRF failure that bogging me. Apart from my current project I just created a fresh one (using Django 1.3) just to confirm the issue is not caused by possible side-effects from within my original proj

Re: CSRF problem with /i18n/setlang/

2011-07-10 Thread Venkatraman S
Have you set the LANGUAGES in settings.py? Something like ... ugettext = lambda s: s LANGUAGES = ( ('de', ugettext('German')), ('fr', ugettext('French')), ('en', ugettext('English')), ) And in urls.py: (r'^i18n/', include('django.conf.urls.i18n')), -V -- You received this message be

CSRF problem with /i18n/setlang/

2011-07-10 Thread cjwalter
Hi all I continue getting CSRF token missing or incorrect. when trying to call /i18n/setlang/ Here the pertinent snippets from settings.py: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middle