Blog

Custom code editor in Django admin

Example in this post will demonstrate how to add CodeMirror, a text editor implemented in Javascript, to the Django Textarea form widget by extending the class django.forms.Textarea. Modified widget will be used as an example in Django Admin, but it can be easily ported to any Django form. CodeMirror editor implemented below is set to a HTML/Javascript mode. To support other languages/modes check the CodeMirror documentation.

Read More

Checksum files in Python

There is a many ways to checksum the file, and many available ready to use programs. Sometimes there is a need to integrate a checksum into your app. Most of the time we want to checksum the file to detect a corruption after the copy, move or download file.

Read More

Tunneling with Ngrok

One of my best finds of the 2014 was Ngrok, service providing secure tunneling from your local machine to the web. It allows you to expose your locally running server to on-line in just a seconds, moreover you are able to access it on http and https. Each developer can find multiple use-cases for this kind of service.

It's multi-platform, stable, simple to use and free of charge service. Of course if you need, you can buy a license but you don't need to.

Read More