P
P
PaffosONE2021-08-01 11:58:03
Flask
PaffosONE, 2021-08-01 11:58:03

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.

610660c1b07f1719780043.png
610661202093e910734381.png

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()


How it is possible to correct it?
PS: Already tried many solutions that were presented on stackoverflow, and github, such as dancing with a tambourine over Settings.json, setting:
pip install pylint-flask-sqlalchemy
pip install pylint-flask

Change PyLint to flake8

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question