django-articles and DISQUS
Django-articles (articles) is a fully-featured blog engine. This is useful for those who wish to set up a blog that’s tightly coupled to an existing...
Twitter, Google, Facebook, Tumblr, and many other modern websites have many things in common – but none of these as useful as pagination. In some cases, users might not even see this feature as pagination, as there are no explicit pages actually being displayed – rather, the results are being …
Twitter, Google, Facebook, Tumblr, and many other modern websites have many things in common – but none of these as useful as pagination. In some cases, users might not even see this feature as pagination, as there are no explicit pages actually being displayed – rather, the results are being loaded separate from the rest of the page – such as Tumblr and Facebook feeds, or Google Images results.
django-endless-pagination solves this problem for the django user – by encapsulating in a single app all the tools needed to provide ajax pagination support, django users can spend more time developing, and less time reinventing the wheel.
pip install django-endless-pagination
You’ll need at least python 2.5, Django 1.0, and jQuery 1.3.
1. add endless_pagination to INSTALLED_APPS
2. add the context processor:
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS TEMPLATE_CONTEXT_PROCESSORS += ( 'django.core.context_processors.request', )
Provided your system is displaying the objects in your template
{% for object in objects %} {% endfor %}
You can use endless-pagination like this:
{%- endset -%} {%- blog_post_data_wall_wrapper body={{hs_blog_post_body}}, summary={{hs_blog_post_summary}} %}Django-articles (articles) is a fully-featured blog engine. This is useful for those who wish to set up a blog that’s tightly coupled to an existing...
In this example, I am going to show how to create a search function in Django using JQuery Ajax. This is a simple way to display results of a search...
Search is an essential tool for any website, and is a feature often requested by both site owners and users. While the built-in Django QuerySet...