################
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 <https://control.aldryn.com/control/?select_project_for_addon=aldryn-redirects>`_
on the Aldryn Marketplace and follow the instructions.
Manually you can:
#. Choose a site you want to install the Addon to from the dashboard.
#. Go to Apps > Install App
#. Click Install next to the Aldryn Redirects app.
#. Redeploy the site.
Manual Installation
###################
```bash
pip install aldryn-redirects
```
Follow the `setup instructions for django-parler <http://django-parler.readthedocs.org/>`_.
```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')
```
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 <https://control.aldryn.com/control/?select_project_for_addon=aldryn-redirects>`_
on the Aldryn Marketplace and follow the instructions.
Manually you can:
#. Choose a site you want to install the Addon to from the dashboard.
#. Go to Apps > Install App
#. Click Install next to the Aldryn Redirects app.
#. Redeploy the site.
Manual Installation
###################
```bash
pip install aldryn-redirects
```
Follow the `setup instructions for django-parler <http://django-parler.readthedocs.org/>`_.
```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')
```
Release files for aldryn-redirects 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aldryn-redirects-1.0.0.tar.gz | 22.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aldryn_redirects-1.0.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 93.3 kB
Release files / aldryn-redirects-1.0.0.tar.gz
| Download URL | aldryn-redirects-1.0.0.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5681339716c0ab061e996d64893f179b4534b34098bf9802ca7f4659e7c1b101
|
|
BLAKE2b-256 checksum How to use checksums |
e7dc517705ce38e3e6fabc97c5e2c7a2b2225323077081e18b990eac08dfa13b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aldryn_redirects-1.0.0-py2-none-any.whl
| Download URL | aldryn_redirects-1.0.0-py2-none-any.whl |
|---|---|
| Size | 71.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
2acc640aadf15768fc4fa95d1063afa94d86bf5494e09dd754aad1dc74fde12a
|
|
BLAKE2b-256 checksum How to use checksums |
ed6045df21de11a5ab4816693fe599bec09f4123e10706da1067469da43a8b1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |