My Blog

My WordPress Blog

My Blog

My WordPress Blog

5. Advanced

Ajax

Ajax essentially is a combination of technologies that are integrated together to reduce the number of page loads. We generally use Ajax to ease end-user experience. Using Ajax in Django can be done by directly using an Ajax library like JQuery or others. Let’s say you want to use JQuery, then you need to download […]

RSS

Django comes with a syndication feed generating framework. With it you can create RSS or Atom feeds just by subclassing django.contrib.syndication.views.Feed class. Let’s create a feed for the latest comments done on the app (Also see Django – Comments Framework chapter). For this, let’s create a myapp/feeds.py and define our feed (You can put your feeds […]

Comments

Before starting, note that the Django Comments framework is deprecated, since the 1.5 version. Now you can use external feature for doing so, but if you still want to use it, it’s still included in version 1.6 and 1.7. Starting version 1.8 it’s absent but you can still get the code on a different GitHub […]

Caching

To cache something is to save the result of an expensive calculation, so that you don’t perform it the next time you need it. Following is a pseudo code that explains how caching works − Django comes with its own caching system that lets you save your dynamic pages, to avoid calculating them again when […]

Scroll to top