I got into the python bash and when i type db.create_(), the error says
db.create_all() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/flask_sqlalchemy/init.py", line 1033, in create_all self._execute_for_all_tables(app, bind, 'create_all') File "/usr/local/lib/python2.7/dist-packages/flask_sqlalchemy/init.py", line 1010, in _execute_for_all_t ables app = self.get_app(app) File "/usr/local/lib/python2.7/dist-packages/flask_sqlalchemy/init.py", line 982, in get_app 'No application found. Either work inside a view function or push' RuntimeError: No application found. Either work inside a view function or push an application context. See htt p://flask-sqlalchemy.pocoo.org/contexts/.