Hi There,
To help future users I have edited this question to be a bit more informative (using the error name as the title of your question is a good way to do this!)
Following this, if you search the name of the error in discourse this will be more likely to give useful solutions, such as this Name error: name 'event' is not defined
Hope this helps,
Becca