So its my first project here and I am having a problem. I have followed the guidelines but when i reached the fifth part of the project which is titled "building a basic flask web application" everything is going well until I reach the part where I am about to run this code:
Code: Select all
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello world'
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0')
File "app.py", line 1
from flask import Flask
^
IndentationError: unexpected indent
It's probably something very basic but I'm stuck so if anyone can help me out it would be great.
thanks anyone
