django filter replace blank space with underscore code example Example: space to underscore python mystring.replace(" ", "_")