Use `isnot(None)` instead of `!= None` in SQL queries
Ensure content models are imported in location_initdb.

Otherwise the corresponding tables won't get created.
Reformat CSP policy to fit into 80 characters.
Make flake8 happy, stick to 80 characters per line.