You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import UserMixin, AnonymousUserMixin
from flask.ext.scrypt import generate_random_salt, generate_password_hash, check_password_hash
New 👍 models.py
from flask_sqlalchemy import SQLAlchemy
from flask_login import UserMixin, AnonymousUserMixin
from flask_scrypt import generate_random_salt, generate_password_hash, check_password_hash
And now i have this error
(virtenv) dsqd@ubuntu:~/cve-portal/app$ python create.py
Traceback (most recent call last):
File "create.py", line 3, in
models.db.drop_all()
File "/home/retis/cve-portal/app/virtenv/local/lib/python2.7/site-packages/flask_sqlalchemy/init.py", line 971, in drop_all
self._execute_for_all_tables(app, bind, 'drop_all')
File "/home/retis/cve-portal/app/virtenv/local/lib/python2.7/site-packages/flask_sqlalchemy/init.py", line 940, in _execute_for_all_tables
app = self.get_app(app)
File "/home/retis/cve-portal/app/virtenv/local/lib/python2.7/site-packages/flask_sqlalchemy/init.py", line 912, 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 http://fla
The text was updated successfully, but these errors were encountered:
Hey can you change this ?
OLD (deprecated) models.py
New 👍 models.py
And now i have this error
(virtenv) dsqd@ubuntu:~/cve-portal/app$ python create.py
Traceback (most recent call last):
File "create.py", line 3, in
models.db.drop_all()
File "/home/retis/cve-portal/app/virtenv/local/lib/python2.7/site-packages/flask_sqlalchemy/init.py", line 971, in drop_all
self._execute_for_all_tables(app, bind, 'drop_all')
File "/home/retis/cve-portal/app/virtenv/local/lib/python2.7/site-packages/flask_sqlalchemy/init.py", line 940, in _execute_for_all_tables
app = self.get_app(app)
File "/home/retis/cve-portal/app/virtenv/local/lib/python2.7/site-packages/flask_sqlalchemy/init.py", line 912, 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 http://fla
The text was updated successfully, but these errors were encountered: