使用多语言目标URL重定向django.contrib.redirects的修改版本。
aldryn-redirects的Python项目详细描述
################
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/?在Aldryn Marketplace上为“Aldryn addon=Aldryn redirects”选择“项目”,然后按照说明进行操作。
您可以手动:
。从仪表板中选择要安装加载项的站点。
。转到“应用程序”>;“安装应用程序”。单击Aldryn Redirects应用程序旁边的“安装”。
。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戡u redirects”
]
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/?在Aldryn Marketplace上为“Aldryn addon=Aldryn redirects”选择“项目”,然后按照说明进行操作。
您可以手动:
。从仪表板中选择要安装加载项的站点。
。转到“应用程序”>;“安装应用程序”。单击Aldryn Redirects应用程序旁边的“安装”。
。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戡u redirects”
]