Skip to content

Commit

Permalink
Merge pull request #48 from valeria-chemtai/ch-flask-changes
Browse files Browse the repository at this point in the history
New Flask Changes
  • Loading branch information
valeria-chemtai committed Aug 6, 2018
2 parents d138c3a + a91fe0f commit 3560a5b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 35 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ In the postactivate file add the following and replace the parenthesis in databa
```
export SECRET='akjshdkqiu3ye723y42i34'
export DATABASE_URL="postgres://{}@localhost:5432/bucketlist"
export APP_SETTINGS="development"
export FLASK_ENV="development"
```
Alternatively if you do not want to automate the export of variables using postactivate, a simple export on the command line before running the app will work as follows:
```
$ export SECRET='akjshdkqiu3ye723y42i34'
$ export DATABASE_URL="postgres://{}@localhost:5432/bucketlist"
$ export APP_SETTINGS="development"
$ export FLASK_ENV="development"
```

Install the requirements
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from flask_migrate import Migrate, MigrateCommand
from app import db, create_app

app = create_app(config_name=os.getenv('APP_SETTINGS'))
app = create_app(config_name=os.getenv('FLASK_ENV'))
migrate = Migrate(app, db)
manager = Manager(app)

Expand Down
68 changes: 36 additions & 32 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,47 +1,51 @@
alembic==0.9.2
alembic==1.0.0
appdirs==1.4.3
appnope==0.1.0
bcrypt==3.1.3
certifi==2017.4.17
cffi==1.10.0
chardet==3.0.3
asn1crypto==0.24.0
bcrypt==3.1.4
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
click==6.7
coverage==4.4.1
cryptography==1.7.2
decorator==4.0.11
Flask==0.12.2
Flask-API==0.7.1
coverage==4.5.1
cryptography==2.3
decorator==4.3.0
Flask==1.0.2
Flask-API==1.0
Flask-Bcrypt==0.7.1
Flask-Cors==3.0.2
Flask-Migrate==2.0.4
Flask-Script==2.0.5
Flask-SQLAlchemy==2.2
Flask-Cors==3.0.6
Flask-Migrate==2.2.1
Flask-Script==2.0.6
Flask-SQLAlchemy==2.3.2
httpie==0.9.9
idna==2.7
ipython-genutils==0.2.0
itsdangerous==0.24
jedi==0.10.2
Jinja2==2.9.6
jwt==0.5.2
Mako==1.0.6
jedi==0.12.1
Jinja2==2.10
jwt==0.5.4
Mako==1.0.7
MarkupSafe==1.0
nose==1.3.7
packaging==16.8
pexpect==4.2.1
packaging==17.1
parso==0.3.1
pexpect==4.6.0
pickleshare==0.7.4
prompt-toolkit==1.0.14
psycopg2==2.7.1
ptyprocess==0.5.1
pyasn1==0.2.3
pycparser==2.17
prompt-toolkit==2.0.4
psycopg2==2.7.5
ptyprocess==0.6.0
pyasn1==0.4.4
pycparser==2.18
Pygments==2.2.0
PyJWT==1.5.0
PyJWT==1.6.4
pyparsing==2.2.0
python-dateutil==2.6.0
python-dateutil==2.7.3
python-editor==1.0.3
requests==2.17.3
requests==2.19.1
simplegeneric==0.8.1
six==1.10.0
SQLAlchemy==1.1.10
six==1.11.0
SQLAlchemy==1.2.10
traitlets==4.3.2
urllib3==1.21.1
urllib3==1.23
wcwidth==0.1.7
Werkzeug==0.12.2
Werkzeug==0.14.1

0 comments on commit 3560a5b

Please sign in to comment.