Im trying to run a flask app locally with also using the cs50 module but i keep getting an error:
NoAppException: While importing "application", an ImportError was raised: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/flask/cli.py", line 235, in locate_app import(module_name) File "/home/rasguy92/Documents/CS50 edX/webTrak/flask/register/application.py", line 2, in import cs50 File "/usr/lib/python2.7/site-packages/cs50/init.py", line 17, in from . import flask ImportError: cannot import name flask
I know that this has something to do with the cs50 module because the error occurs in cs50/init.py furthermore, when i don't import the cs50 module everything just works fine, hopefully you guys can help me out
this is my code:
import cs50
from flask import Flask, render_template
# initiate database and app
app = Flask(__name__)
db = cs50.SQL('sqlite:///lecture.db')
@app.route("/")
def index():
return "HELLO WORLD"```