一个简单的用于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将spring j_spring_安全检查迁移到登录   log4j2中自定义appender中AppConfig的java问题   在将java转换为Json时是否可以忽略内部类名和变量   用java将PDF文件转换为十六进制格式   java将值从AsyncTask返回到主类   java如何导入带有部署变量类名的静态函数?   java Spring Boot@ConfigurationProperties未从环境检索属性   java为什么API调用需要80毫秒的延迟才能到达控制器(在Google应用程序引擎中)?   XML配置中MarshallingMessageConverter中的java设置MarshallTo获取无效属性“MarshallTo”   java从群中获取facebook帖子   @ComponentScan的java excludeFilters不起作用   java将单选按钮值从一个类传递到另一个类   java使JTextArea在Swing中可滚动   java Android增强现实应用程序:将球坐标旋转到设备坐标系