django分页工具支持ajax、多页和延迟分页、twitter风格和digg风格的分页。
django-endless-pagination-angular的Python项目详细描述
============
django无休止的分页角度图片::https://coveralls.io/repos/mapeveri/django-ending-pagination-angular/badge.svg?branch=master&service=github
:目标:https://coveralls.io/github/mapeveri/django-ending-pagination-angular?分支=主
…图片::https://travis-ci.org/mapeveri/django-ending-pagination-angular.svg?branch=master
:目标:https://travis ci.org/mapeveri/django无尽分页角度
…图片::https://badge.fury.io/py/django ending pagination angular.svg
:目标:http://badge.fury.io/py/django ending pagination angular
…图片::https://img.shields.io/pypi/dm/django ending pagination angular.svg
:目标:https://pypi.python.org/pypi/django ending pagination angular
django ending pagination angular是由francesco banconi创建的优秀应用程序django ending pagination的分支。
此应用程序获取2.0版的所有代码除了将jquery迁移到angular.js之外,在django>;=1.7中工作的更新。
django无休止分页angular可用于提供twitter风格或digg风格的分页,具有可选的ajax支持和其他功能
,如多页或延迟分页。
documentation
----
**documentation**是“在线可用的”
<;http://django-ending pagination angular.readthedocs.org/>;`,或在项目的**doc*
目录中。
installation
----
via pip::
quick start
----
1。将应用程序“无休止分页”添加到已安装的应用程序中。
2.在settings.py::
from django.conf.global_settings import template_context_processors
template_context_processors+=(
'django.core.context_processors.request',
)
Getting Started
----
在本例中,将实现Twitter样式的分页
base.html::
<;!doctype html>;
<;html>;
<;head>;
<;meta-content='text/html;charset=utf-8'http-equiv='content-type'/>;
<;title>;{%block-title%}测试项目{%endblock%}-django无休止的分页角度<;title>;
<;
<;lt;
<;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;br/><;lt;gt;lt;gt;lt;gt;lt;gt;lt;br/>>;
<;gt;gt;lt;gt;gt;lt;gt;gt;lt;gt;gt;lt;br/><;lt;div;gt;lt;gt;gt;lt;lt;gt;lt;gt;lt;gt;lt;gt;lt;lt;gt;lt;lt;gt;lt;lt;gt;lt;gt;lt;lt;gt;lt;lt$<;h1>;django无休止的分页角度<;small>;twitter风格<;small>;
<;div>;
<;div>;
<;div class="row">
{%block content%}{%endblock%}
<;div>;
<;div>;
{%block js%}
<;script src=“https://ajax.googleapis.com/ajax/libs/angular js/1.4.2/angular.min.js”>;
<;script src={{{static\u url}}永无休止的分页/js/module.endending.js”>;
{%endblock%}
<;
<;/html>;
>
{%ext{%base.html”%}
{%block content%>
<;div{%cl 4}{%inclumyapp/page{%myapp/page{%template.html%}
<;div>;
{%endblock%}
>
>
>
>
>
>>
>
>
{%对于objects%}
<;{cl 5}$<;h4>;{{object.title}{{{object.object.contents}
<;div>;
{{{{{object.contents}{{{{{object.contents}
<;lt;div>;
{{{%endfor%}
{{%n展示更多“更多结果”%}
twitterview(视图)类:twitterview(视图):
>deget(自定、请求、论坛、自定、论坛、论坛、自定/>
模板名=“myapp/index.html”
页面模板=“myapp/page_template.html“
“objects”:对象,
}
如果request.is_ajax():
template_name=page_template
返回render(request,template_name,数据)
在url中。py::
url(r'^twitter/$',twitter view.as_view(),name='twitter'),
运行服务器::
访问:127.0.0.1:800/twitter/
如果您已经声明了一个角度模块,您只需插入模块endlesspagination即可。如下所示:
“使用strict”;
angular.module('testapp',['endless pagination']);
这样您就可以使用无休止的分页指令。有关更多示例,请查看官方存储库:
https://github.com/mapeveri/django-ending-pagination-angular/tree/master/tests
django无休止的分页角度图片::https://coveralls.io/repos/mapeveri/django-ending-pagination-angular/badge.svg?branch=master&service=github
:目标:https://coveralls.io/github/mapeveri/django-ending-pagination-angular?分支=主
…图片::https://travis-ci.org/mapeveri/django-ending-pagination-angular.svg?branch=master
:目标:https://travis ci.org/mapeveri/django无尽分页角度
…图片::https://badge.fury.io/py/django ending pagination angular.svg
:目标:http://badge.fury.io/py/django ending pagination angular
…图片::https://img.shields.io/pypi/dm/django ending pagination angular.svg
:目标:https://pypi.python.org/pypi/django ending pagination angular
django ending pagination angular是由francesco banconi创建的优秀应用程序django ending pagination的分支。
此应用程序获取2.0版的所有代码除了将jquery迁移到angular.js之外,在django>;=1.7中工作的更新。
django无休止分页angular可用于提供twitter风格或digg风格的分页,具有可选的ajax支持和其他功能
,如多页或延迟分页。
documentation
----
**documentation**是“在线可用的”
<;http://django-ending pagination angular.readthedocs.org/>;`,或在项目的**doc*
目录中。
installation
----
via pip::
quick start
----
1。将应用程序“无休止分页”添加到已安装的应用程序中。
2.在settings.py::
from django.conf.global_settings import template_context_processors
template_context_processors+=(
'django.core.context_processors.request',
)
Getting Started
----
在本例中,将实现Twitter样式的分页
base.html::
<;!doctype html>;
<;html>;
<;head>;
<;meta-content='text/html;charset=utf-8'http-equiv='content-type'/>;
<;title>;{%block-title%}测试项目{%endblock%}-django无休止的分页角度<;title>;
<;
<;lt;
<;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;br/><;lt;gt;lt;gt;lt;gt;lt;gt;lt;br/>>;
<;gt;gt;lt;gt;gt;lt;gt;gt;lt;gt;gt;lt;br/><;lt;div;gt;lt;gt;gt;lt;lt;gt;lt;gt;lt;gt;lt;gt;lt;lt;gt;lt;lt;gt;lt;lt;gt;lt;gt;lt;lt;gt;lt;lt$<;h1>;django无休止的分页角度<;small>;twitter风格<;small>;
<;div>;
<;div>;
<;div class="row">
{%block content%}{%endblock%}
<;div>;
<;div>;
{%block js%}
<;script src=“https://ajax.googleapis.com/ajax/libs/angular js/1.4.2/angular.min.js”>;
<;script src={{{static\u url}}永无休止的分页/js/module.endending.js”>;
{%endblock%}
<;
<;/html>;
>
{%ext{%base.html”%}
{%block content%>
<;div{%cl 4}{%inclumyapp/page{%myapp/page{%template.html%}
<;div>;
{%endblock%}
>
>
>
>
>
>>
>
>
{%对于objects%}
<;{cl 5}$<;h4>;{{object.title}{{{object.object.contents}
<;div>;
{{{{{object.contents}{{{{{object.contents}
<;lt;div>;
{{{%endfor%}
{{%n展示更多“更多结果”%}
twitterview(视图)类:twitterview(视图):
>deget(自定、请求、论坛、自定、论坛、论坛、自定/>
模板名=“myapp/index.html”
页面模板=“myapp/page_template.html“
“objects”:对象,
}
如果request.is_ajax():
template_name=page_template
返回render(request,template_name,数据)
在url中。py::
url(r'^twitter/$',twitter view.as_view(),name='twitter'),
运行服务器::
访问:127.0.0.1:800/twitter/
如果您已经声明了一个角度模块,您只需插入模块endlesspagination即可。如下所示:
“使用strict”;
angular.module('testapp',['endless pagination']);
这样您就可以使用无休止的分页指令。有关更多示例,请查看官方存储库:
https://github.com/mapeveri/django-ending-pagination-angular/tree/master/tests