Templates and JavaScript

In this chapter, we will cover the following topics:

  • Arranging the base.html template
  • Using Django Sekizai
  • Exposing settings in JavaScript
  • Using HTML5 data attributes
  • Providing responsive images(env)$ python manage.py migrate ideas zero
  • Implementing a continuous scrolling
  • Opening object details in a modal dialog
  • Implementing the Like widget
  • Uploading images via Ajax

Get Django 3 Web Development Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.