Replace settings.py with a template file