A modified version of django's django.contrib.redirects app that supports language dependant target URLs, using django-hvad
Python
Latest commit 8367d54 Jun 9, 2017 @czpython czpython Bumped version to 1.2.0
Permalink
Failed to load latest commit information.
aldryn_redirects Bumped version to 1.2.0 Jun 8, 2017
.gitignore Initial Commit Mar 19, 2014
CHANGELOG.rst Changed the redirect lookup to ignore GET parameters (#12) Jun 8, 2017
LICENSE.txt
MANIFEST.in add readme and changelog to manifest Feb 23, 2016
README.rst correct typos Feb 23, 2016
addon.json
aldryn_config.py
setup.py switch to django-parler Feb 22, 2016

README.rst

Aldryn Redirects

This is a modified version of Django's django.contrib.redirects app that supports language-dependent target URLs, using django-parler.

This is useful for cases in which another middleware strips the language prefix from the URL, like django CMS. It allows to define different urls to redirect to, depending on the user's language.

Installation

Aldryn Platform Users

To install the addon on Aldryn, all you need to do is follow this installation link on the Aldryn Marketplace and follow the instructions.

Manually you can:

  1. Choose a site you want to install the Addon to from the dashboard.
  2. Go to Apps > Install App
  3. Click Install next to the Aldryn Redirects app.
  4. Redeploy the site.

Manual Installation

`bash pip install aldryn-redirects `

Follow the setup instructions for django-parler.

```python

# settings.py

INSTALLED_APPS += [
'parler', 'aldryn_redirects'

]

# add the middleware somewhere near the top of MIDDLEWARE_CLASSES

MIDDLEWARE_CLASSES.insert(
0, 'aldryn_redirects.middleware.RedirectFallbackMiddleware')

```