DEV Community

Discussion on: Install Flask and create your first web application

Collapse
 
lankjan007 profile image
Dmitri • Edited

Hi Sahil,

I just wanted to add an error I ran into while attempting this tutorial.

I received an error 'NameError: name 'name' is not defined'

after checking stackoverflow, I found a solution and changed (name) to (__name__) and this worked for me.

I hope this helps someone else with here,

Thanks!

Collapse
 
sahilrajput profile image
Sahil Rajput

Hi Dmitri,

I have written __ name __ but somehow it changed to 'name'.
Thank you for pointing out the mistake.