Blog

Blog

Creating a sitemap index in Django

Sitemaps are simple XML files that are used to provide details for every URL on a website. They include location, date of last modification, change frequency and page priority. If you’ve got an international or multilingual site, you can also use your sitemap to note the relationship between language versions of a URL. This helps search engines to learn about the site’s structure and index your website.

Creating webhooks with Django

What is a webhook

A webhook is a HTTP callback that is triggered on occurrence of an event. They are helpful in notifying an event to different web applications on the internet (or any network). Consider the scenario of a CI (continuous integration) environment. The requirement there is that as soon as a developer pushes his code changes to the repository, the process of testing and deployment has to start. This can be easily achieved with a webhook.
Let us create an event receiver endpoint with Django.

Extend the search functionality of Django using Elastic Search and Haystack

In this article, we will discuss how to improve your website with search functionality using haystack and elastic search. Assuming you already have a good knowledge of django web framework, lets get into haystack and elastic search.

Create and update Django rest framework nested serializers

In this article we will see about the Django rest framework nested serializers and how to create a DRF writable nested serializers. This tutorial is divided into two parts. In the first part we discuss about creating models, serializers and views. In the second part we discuss how to use nested serializers and how to create and update nested serializers.

Dynamic fields in Django Rest Framwork serializers

Often we need to have custom fields that must be calculated dynamically. In Entity-Relationship model notation the fields are called Derived Attributes. Such fields are derived from other fields of the same entity (model) and they might change over time (age, for example). We can create dynamic fields in django in more than one way.

Recent Posts

Archive

2018
2017
2016
2015
2014

Tags

Authors

Feeds

RSS / Atom