In this article, I’ll talk about:
1. Unit Testing
2. Unit Testing in Python/Django
Musings of a Wandering Mind
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.
In this article, I’ll list some tools I use for developing web applications in Python/Django and describe my workflow. I’ll also share a few tweaks I’ve come up with to make my life easier. I realize my Django development setup is ever evolving and will probably change significantly as I discover new tools and techniques. So, I’ll make sure to edit this article when that happens. For now, here we go:
So, let’s say it’s your birthday. You’re super-excited and spend the day having your cake and eating it too. The next morning you log in to Facebook, only to find your timeline completely flooded with birthday posts from all your well-wishers. You want to reply to all of them, but it would take you all day! How do you automate this whole process of liking and commenting on each birthday post without toiling away on Facebook for hours? We turn to our trusty little friend: Python!