Tutorials about python

ValueError: attempted relative import beyond top-level package

Relative import in python can be sometimes mysterious and obscure. You probably see the exception ValueError: attempted relative import beyond top-level package when trying to use relative import. In this article, we see how to fix this issue.

Call coroutines in django views

Using coroutines, functions declared with async syntax, in Django views raise errors? In this article, we will see how to successfully call coroutines in Django views.

Build Python 3.7 from Source

In this tutorial, we see how to build customized python version from source on ubuntu. we also see 3 options to install it to the local system:
  • Install it as the main python interpreter
  • Install it as alternative python interpreter
  • Create and Install a deb package with the help of checkinstall.