Bixly How-To: integrate django with facebook – part1
**This article refers to an older version of the Facebook developers page and api, and may have changed since the writing** Being the biggest social...
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}} %}**This article refers to an older version of the Facebook developers page and api, and may have changed since the writing** Being the biggest social...
Django Fiber is a very useful app. If your site requires dynamic content, menus and front end editing Fiber would come in handy. Using fiber is as...
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...