Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class level model didn't work #23

Open
guyskk opened this issue Feb 6, 2016 · 0 comments
Open

class level model didn't work #23

guyskk opened this issue Feb 6, 2016 · 0 comments

Comments

@guyskk
Copy link

guyskk commented Feb 6, 2016

app.py

class model(object):

    class Book(db.Model):
        bookid = db.Column(db.Integer, primary_key=True)
        name = db.Column(db.Unicode, nullable=False)

bookdata.json

{
    "model": "app.model.Book",
    "records": []
}

the error is module app.model not exists.

perhaps use new sytanx app:model.Book can solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant