djangofy html files but have SQL problem now

Please use 4 spaces indent. (python)