Patch 1

Move settings out of templage, and into conf.py