Answer the question
In order to leave comments, you need to log in
How to force to see in VSCode member Column?
I use Flask, and for database management: flask_sqlalchemy
When querying an object: db = SQLAlchemy( app )
VSCODE does not see the functions Column, Integer, String, etc.
All code:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask( __name__ )
app.debug = True
app.config['SECRET_KEY'] = 'u8hr3218745rt2438tgr24365t327rfwtdtwdwoi'
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:[email protected]/flask_app_db'
db = SQLAlchemy( app )
@app.route('/')
def index():
return 'HomePage'
if '__main__' in __name__:
app.run()
pip install pylint-flask-sqlalchemy
pip install pylint-flask
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question