How to implement two dropdowns dependent on each other using Django and jQuery

Hello everyone.With today’s article I want to show how to implement two dropdowns dependent on each other using Django and jQuery.Suppose we have a 1-N relationship between car brands and car models: we want to show the list of brands in the first dropdown; then once you have selected a brand, the second dropdown will show a list of filtered models for that brand.Suppose we ha...

Read more

How to create a custom feed in Django using the Syndication Feed Framework

Hello everyone.In this article I will show you how to create a custom feed in Django, using the Django Syndication Feed Framework 1.2 or higher.I’ve had to create an XML with some more tags for each item in the feed. In particular, in addition to the usual tags present in an RSS feed, I’ve added the <short_description/> and <image/> tags.Reading the official documentation of the framework, it is recommended ...

Read more