djangofy html files but have SQL problem now

oh this one is not written by me
actually it was one line code
but i accidentally prettify it 
should i need to add a new line at the end of file?