Use a for loop in template instead of filter

Change the local_settings.py.j2 template to use a for loop instead of a custom
filter.

Make a copy of the old template so we see how the filters work.