一个简单的用于url操作的django扩展

django-furl的Python项目详细描述


====
django furl[WIP]
====
版本许可证下载

|图片版本:https://img.shields.io/pypi/v/django-furl.svg?style=flat
:目标:https://pypi.python.org/pypi/django furl
:alt:version
…|许可证图像::https://img.shields.io/pypi/l/django-furl.svg?风格=平面
:目标:http://GITHUB.COM/POXIPS/Django Fur/Bulb/Muth/Subj:BR/>:ALT:BuiBR/>|下载image::https://img.shields.io/pypi/dm/django furl.svg
:target:https://pypi.python.org/pypi/django furl
:a lt:downloads

**django furl**是'furl
<;https://github.com/gruns/furl>;的api的简单django包装。它为url操作提供了必要的模板标记。代码块:

{%furl_add'http://somestuff.tv/search/?q=the+office'character='michael scott'year=2005%}

``http://sometuff.tv/search/?q=the+office&character=michael+scott&year=2005``


安装
----
:::


$pip install django furl



quick start
--

1。将“django_full”添加到已安装的应用程序中::


installed_apps=[

'django_full',
]


2。在模板中加载“full_tags”:

{%load full_tags%}




代码块:

{%furl_add'http://somestuff.tv/search/?q=the+office'character='michael scott'year=2005%}

``http://sometuff.tv/search/?Q=the+office&character=michael+scott&year=2005``

…代码块:

{%furl_update'http://somestuff.tv/search/?page=3'q='大爆炸理论'character='sheldon cooper'page=1%}

``http://somethuff.tv/search/?page=1&q=the+big+bang+theory&character=sheldon+cooper``

代码块:

{%furl_add'http://somestuff.tv/search/?facets=type.other'facets='category.trame'q='true detective'%}

``http://somethuff.tv/search/?facets=type.other&facets=category.trama&q=true+detective``

…代码块:

{%furl_del'http://somestuff.tv/search/?facets=type.other&facets=category.other&q=w“”facets“”q“%}

``http://somethuff.tv/search/``

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

推荐PyPI第三方库


热门话题
java Android首选项相同getPreference()值的不同数据   字符串如何在Java中连接两个列表中的单词   安卓 Java Socket编程:检测客户端和服务器是否连接   使用JTextField的java无法将值转换为int   在java中,如何在不通过超级构造函数设置的情况下将消息设置为自定义异常类   用于标识属性值的java正则表达式模式   Android中的java不可见谷歌地图   java正确取消启动ExecutorService的JavaFX任务   在非活动java类中使用安卓的融合位置提供程序,并在主活动类中获取经度和纬度   spring为什么我的大摇大摆不能用springboot在java中工作?   java JSF(2.2)ViewScope在Weblogic 12.2.1.2和JDK 8上使用Spring 4.3.7(在Mac OS和Docker Oracle Linux环境上)   java如何用一个按钮提高计时器速度   java如何检查字符是否是元音?   注册表引用了不存在的Java运行时环境安装或运行时已损坏错误   来自ResultSet java的mysql getDateTime   maven LanguageTool Java API是否具有“无用”依赖关系?   twitter api身份验证的java Trycatch问题   java在Apache Struts 1.1中是否可以显式白名单?   安卓致命异常:主java。lang.RuntimeException:被问及未知片段