-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0f2457
commit 1169bc9
Showing
9 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*.db | ||
*.log | ||
*.pyc | ||
.git/ | ||
*/chest_model | ||
*/skin_cancer_model_model | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: gunicorn manage:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "Start on Heroku: Python", | ||
"description": "A barebones Python app, which can easily be deployed to Heroku.", | ||
"image": "heroku/python", | ||
"repository": "https://github.com/dsinghnegi/medical-diagnosis-webapp", | ||
"keywords": ["python", "flask" ], | ||
"addons": [ "heroku-postgresql" ], | ||
"env": { | ||
"SECRET_KEY": { | ||
"description": "The secret key for the flask application.", | ||
"generator": "secret" | ||
} | ||
}, | ||
"environments": { | ||
"test": { | ||
"scripts": { | ||
"test-setup": "python manage.py initdb", | ||
"test": "python manage.py runserver" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import logging | ||
|
||
from app.config_common import * | ||
|
||
|
||
# DEBUG has to be to False in a production environment for security reasons | ||
DEBUG = False | ||
|
||
# Secret key for generating tokens | ||
SECRET_KEY = 'houdini' | ||
|
||
# Admin credentials | ||
ADMIN_CREDENTIALS = ('admin', 'pa$$word') | ||
|
||
# Database choice | ||
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db' | ||
SQLALCHEMY_TRACK_MODIFICATIONS = True | ||
|
||
# Configuration of a Gmail account for sending mails | ||
MAIL_SERVER = 'smtp.googlemail.com' | ||
MAIL_PORT = 465 | ||
MAIL_USE_TLS = False | ||
MAIL_USE_SSL = True | ||
MAIL_USERNAME = 'flask.boilerplate' | ||
MAIL_PASSWORD = 'flaskboilerplate123' | ||
ADMINS = ['[email protected]'] | ||
|
||
# Number of times a password is hashed | ||
BCRYPT_LOG_ROUNDS = 12 | ||
|
||
LOG_LEVEL = logging.INFO | ||
LOG_FILENAME = 'activity.log' | ||
LOG_MAXBYTES = 1024 | ||
LOG_BACKUPS = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,5 @@ | |
ADMINS = ['[email protected]'] | ||
|
||
# Number of times a password is hashed | ||
MAX_CONTENT_LENGTH= 10 * 1024 * 1024 | ||
BCRYPT_LOG_ROUNDS = 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FLASK_CONFIG=heroku |