I realize this is an old post. so this is for the next person who stumbles in here looking for an answer to the same question. I had the same problem. for me, i was missing a colon in my code. it was that simple. check for red underlines in your code i tried runserver again, python3 manage.py runserver. and the error generated led me right to the issue. hope this helps someone.
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8d946444-912d-4de9-9c9c-c8c85c0a348e%40googlegroups.com.