virtualenv **environment-name**
source **environment-name**/bin/activate
requirements.txt
with pip install -r requirements.txt
deactivate
it
$ pip install virtualenv
$ cd womentor_project_folder
$ virtualenv womentor_env
$ source womentor_env/bin/activate
(womentor_env) $ pip install -r requirements.txt
(womentor_env) $ deactivate
$
requirements.txt
file as needed!(ensure you have a valid address for a db) 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