How to rotate Gunicorn log files
Posted on . Reading time: 3 mins. Tags: gunicorn, flask, python, logging.
Don't rely on TimedRotatingFileHandler
when using Gunicorn. You might be missing log records!
Posted on . Reading time: 3 mins. Tags: gunicorn, flask, python, logging.
Don't rely on TimedRotatingFileHandler
when using Gunicorn. You might be missing log records!
datetime
module in PythonPosted on . Reading time: 3 mins. Tags: python.
A recommended approach for importing Python's datetime
module, using aliases, to prevent potential bugs and namespace conflicts.
Posted on . Reading time: 2 mins. Tags: python.
You can "intern" strings to improve performance of dictionary lookups, but using them is not as straightforward as one can think.
Posted on . Reading time: 1 mins. Tags: linux, pycharm, python.
If you install PyCharm using the JetBrains installer, you have to use a shell script to launch it. But there is a way to create a shortcut for your Desktop environment.