madeleinel / WoMentor

A mentoring platform created by @Eleanombre and @Madeleinel. Created using Python, Flask and PostgreSQL.
https://womentotech.herokuapp.com/
MIT License
2 stars 0 forks source link

fix bug with appliction not registered #30

Closed twinlensreflex closed 7 years ago

twinlensreflex commented 7 years ago

bug at issue #29 fixed

I read over the flask-sqlalchemy documentation.

to start the database (ie. create all tables from scratch) navigate to your project folder and open the python interpreter

yourMachine:projectFolder yourUser$ python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from cordb import db
>>> from app import create_app
>>> app = create_app()
>>> app.app_context().push()
>>> db.create_all()

if you open the db you should now see that the empty tables have been created as specified in the flask_data_models.py file