Skip to content

AttributeError: 'SQLAlchemy' object has no attribute 'model' #31

@Xnsam

Description

@Xnsam

Hi,

I was try to use package structure in the project with small changes here and there. When i do python run.py I get the following errors.

only folder names are different and some code. I tried to look out the answers in stack overflow but could not understand a thing as i am noobie.

> /home/#####/anaconda2/envs/py3/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
>   'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
> Traceback (most recent call last):
>   File "run.py", line 3, in <module>
>     from vf import app
>   File "/home/####/Documents/versatile/vf/__init__.py", line 12, in <module>
>     class User(db.model):
> AttributeError: 'SQLAlchemy' object has no attribute 'model'

Please kindly help me out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions