Get project working locally
This commit is contained in:
18
manage.py
Normal file
18
manage.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from app import create_app, db
|
||||
from flask_migrate import Migrate
|
||||
|
||||
from app.models import Profile, Reading, User
|
||||
|
||||
app = create_app()
|
||||
|
||||
# Initialize Flask-Migrate
|
||||
migrate = Migrate(app, db)
|
||||
|
||||
# Add shell context for Flask CLI
|
||||
@app.shell_context_processor
|
||||
def make_shell_context():
|
||||
return {'db': db, 'User': User, 'Profile': Profile, 'Reading': Reading}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
Reference in New Issue
Block a user