Skip to content

Fix a strange bug with runserver on Python 3.6.7+

Erwan Rouchet requested to merge fix-environ-type into master

Running the server caused a TypeError: str expected, not bool due to os.environ['ALL_CHECKS'] being set to True. The strange part of this bug is it only happens randomly after installing Python 3.6.7+ (you may need to recreate your virtual environment), but the code that handles this type check was not updated for 9 years.

Merge request reports

Loading