views.py fix syntax errors