-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from Nishchal-007/dev
Auth and UI changes
- Loading branch information
Showing
13 changed files
with
1,464 additions
and
392 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,12 @@ | ||
from flask import Flask | ||
import os | ||
from flask_sqlalchemy import SQLAlchemy | ||
import warnings | ||
warnings.filterwarnings("ignore") | ||
|
||
PEOPLE_FOLDER = os.path.join('static','styles') | ||
app = Flask(__name__) | ||
|
||
app.config['SECRET_KEY'] = 'secret-key-goes-here' | ||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite' | ||
db = SQLAlchemy(app) |
Binary file not shown.
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,13 @@ | ||
from __init__ import db | ||
from flask import Flask | ||
import os | ||
from flask_sqlalchemy import SQLAlchemy | ||
from flask_login import UserMixin | ||
import warnings | ||
warnings.filterwarnings("ignore") | ||
|
||
class User(UserMixin, db.Model): | ||
id = db.Column(db.Integer, primary_key=True) # primary keys are required by SQLAlchemy | ||
email = db.Column(db.String(100), unique=True) | ||
password = db.Column(db.String(100)) | ||
name = db.Column(db.String(1000)) |
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 |
---|---|---|
@@ -1,15 +1,21 @@ | ||
click==8.0.1 | ||
colorama==0.4.4 | ||
Flask==2.0.1 | ||
Flask-Login==0.5.0 | ||
Flask-SQLAlchemy==2.5.1 | ||
greenlet==1.1.0 | ||
itsdangerous==2.0.1 | ||
Jinja2==3.0.1 | ||
MarkupSafe==2.0.1 | ||
numpy==1.20.3 | ||
pandas==1.2.4 | ||
Pillow==8.2.0 | ||
pydicom==2.1.2 | ||
pypng==0.0.20 | ||
python-dateutil==2.8.1 | ||
pytz==2021.1 | ||
schedule==1.1.0 | ||
six==1.16.0 | ||
SQLAlchemy==1.4.18 | ||
sqlparse==0.4.1 | ||
Werkzeug==2.0.1 |
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
Oops, something went wrong.