Skip to content

Django 1.4 - Locale URL #8

@python-force

Description

@python-force

Hello,

want to say great job on easymode, I made changes to it by your tutorial for 1.4 and it works great except 1 thing.

In 1.3.1 - Django admin was using links which basically made you to stay in admin on certain language, example:

  1. www.example.com/it/admin/...
  2. When I edit any of the records and click save it stays on /it/ - italian for example

Django 1.4:

  1. www.example.com/it/admin/...
  2. When I edit any of the records and click save it goes to /en/ - english - because thats default
  3. it happens because in source code admin has relative links "/admin/auth..." that means it strip entire url and load defaul language...

So I have 2 versions of website in 1.3.1 and 1.4 - I want to achieve that person with Italian language will stay on Italian, without

changing the 'localeurl' in the url every record he is changing...

I would like to do it without editing the core of django to be like in 1.3.1, I think there must be a proper way to do it with cookies

maybe not sure, I am not PRO in Django so if you already know if you can share how to achieve this, thanks a lot.

Great work by the way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions