Skip to content

html

Django: Save Screenshot of a Webpage

Let’s say you want to save the screenshot of a webpage in Django. For example, you might need to store a screenshot of an agreement with your client’s signature when it’s filled up and submitted.

If you look for an external library to do this, you might stumble upon django-screamshot. I haven’t tried this library, but it looks promising.

In this tutorial, however, I’ll show you how to achieve this using the HTML5 Canvas and Python.

Read More →

Django HTML Template: SB Admin 2

In this article, I’ll explain my approach to working with a Django HTML template and optimizing template inheritance in Django. In general, I consider myself a backend developer, but I do have to deal with a lot of HTML/CSS/JavaScript during my development. Mostly when I start a new project, I begin by selecting an appropriate HTML template for it and then deconstructing the template until it’s modular and optimized for inheritance.

Read More →