Things learnt about Django
-
Django’s JSON encoder rounds
datetime
s down to the nearest millisecond on -
How Django’s
override_settings
decorator causes flakey tests on - How to override Django’s settings for every method in a test class on
-
That Python’s
datetime
package doesn’t support ordinal suffixes for the day of the month on - You can’t use Django’s generic foreign key field with objects stored in a separate database on
-
About Django’s
setup
method for generic view classes on - Django settings prefixed with an underscore are private on
- Django doesn’t flush caches between tests on
- How Django’s management commands need to be type hinted on