Month: July 2021
Resetting Django Migrations Without Losing Data
This shows how to reset django migrations without losing any data. If you’ve deleted an…
Show all properties of a variable in python (like PHPs var_dump, but better)
“but better” because types are also exposed from inspect import getmembers from pprint import pprint…
Grep for IP address with regular expressions, recursive directory search, only matching
Grep is powerful search. Here is how to grep for an IP address within a…