I recently worked on a short website project using Django & Heroku. It was my very time using this Python framework, and I really liked it !
This is a compendium of tips & tricks that I, as a Django beginner, found quite useful :
Django enhanced shell
To install it :
pip install django …
Une grosse checklist de bonnes pratiques pour réussir votre projet Django.
Die shell script, DIE !
In this post, I'll show how easy it ease to convert fragile shell scripts to Python scripts, using sh.py. I'll use as an example a simple script to check your HTML code from the command-line, using the W3C validator.
Now you ask me, why the …
The mypy programming language tutorial. Focus on new features not present in Python.
Recent postings from Python-related blogs.
Disclaimer: this post was heaviliy inspired by the 2 following gists:
color_log.py
usingtermcolor
recipescolorlog.py
usingcolorama
I loved the simplicity of the first, not having to manipulate any of the logging internal API, but I prefer colorama
over termcolor
.
Without further ado, there is my solution …
Pytest
is a very complete test framework for Python. I like how you can write a basic unittest.TestCase
and the py.test
test runner command will inject all its magic at runtime, without you having to directly import
anything: awesome separation of concerns.
This modularity comes at a cost …
miguelgrinberg.com
supporting-python-3 - Supporting Python 3
I'm working on an ongoing project and it's ready for GUI development now so I've never used tkinter before and I'm curious as too how good the...