fix templating error for manage.py