Update: if I disable 'django.middleware.locale.LocaleMiddleware', it's
not redirecting anymore. But I need to have i18n support in my website!
Any idea?
On 06/26/2013 05:09 PM, Roberto López López wrote:
> Hi,
>
> After creating an object from the admin interface I'm redirected to a
> "localized" version of the url. For example, if the original url is
> http://127.0.0.1:8000/admin/project/project/2/ , I'm redirected to
> http://127.0.0.1:8000/en/admin/project/project/2/ .
>
> I suppose this has to do with the middleware in my settings file:
>
> MIDDLEWARE_CLASSES = (
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.locale.LocaleMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.doc.XViewMiddleware',
> # Uncomment the next line for simple clickjacking protection:
> # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> 'cms.middleware.page.CurrentPageMiddleware',
> 'cms.middleware.user.CurrentUserMiddleware',
> 'cms.middleware.toolbar.ToolbarMiddleware',
> 'cms.middleware.language.LanguageCookieMiddleware',
> )
>
> Any suggestion please? Thanks!
>
> Roberto
>
>
--
Kind regards,
Roberto López López
System Developer
Parallab, Uni Computing
Høyteknologisenteret, Thormøhlensgate 55
N-5008 Bergen, Norway
Tel:(+47) 555 84091
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.