使用多语言目标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”
]

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何忽略缓冲读取器中在“”之后的行的其余部分,或行上的特定字符?   java在db中创建空对象或稍后保存   java如何实现UI无关的后台工作任务   java未能在Android中从BaseAdapter扩展的类中启动Tactivity?   java斐波那契迭代移动数组[]   安卓从文件读取提供了java。木卫一。StreamCorruptedException:无效的流标头:73720027   java计算矩形中的六边形数?   仅使用Java 1.5(或更早版本)读写XML   java如果所有元素都以相同的bucked结尾,为什么要进行大小调整?   java Apache POI Excel在xx中发现无法读取的内容。xlsx   swing我可以在普通java应用程序中使用GWTGUI吗?   来自自定义Java客户端的http删除请求的行为与邮递员不同   运行批处理文件时,java当前目录无效   使用TypeReference将java字符串转换为ArrayList<STRING>   documentlistener突出显示所有匹配词Java