Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/divio/aldryn-redirects
A modified version of django's django.contrib.redirects app that supports language dependant target URLs, using django-hvad
https://github.com/divio/aldryn-redirects
Last synced: 2 months ago
JSON representation
A modified version of django's django.contrib.redirects app that supports language dependant target URLs, using django-hvad
- Host: GitHub
- URL: https://github.com/divio/aldryn-redirects
- Owner: divio
- License: other
- Created: 2014-03-19T09:20:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T14:23:51.000Z (almost 3 years ago)
- Last Synced: 2024-11-14T20:23:38.613Z (2 months ago)
- Language: Python
- Homepage: http://www.aldryn.com/en/marketplace/aldryn-redirects/
- Size: 79.1 KB
- Stars: 2
- Watchers: 7
- Forks: 15
- Open Issues: 12
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
**Deprecated**
This project is no longer supported.
Divio will undertake no further development or maintenance of this project. If you are interested in continuing to develop it, use the fork functionality from GitHub. We are not able to transfer ownership of the repository to another party.
Please have a look at alternatives such as Djangos `redirects app `_.
################
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:
#. 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 `_.
```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')
```