Skip to content

Commit 52afd53

Browse files
committed
ThinkTank
1 parent e5c0ae0 commit 52afd53

File tree

3,548 files changed

+721140
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,548 files changed

+721140
-0
lines changed

Projects/ThinkTank/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects/ThinkTank/.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects/ThinkTank/.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects/ThinkTank/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects/ThinkTank/.idea/notionClone.iml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
712 Bytes
Binary file not shown.
654 Bytes
Binary file not shown.

Projects/ThinkTank/app.db

32 KB
Binary file not shown.

Projects/ThinkTank/app/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from flask import Flask
2+
from flask_sqlalchemy import SQLAlchemy
3+
from flask_migrate import Migrate
4+
from flask_wtf.csrf import CSRFProtect
5+
from flask_bcrypt import Bcrypt
6+
from flask_login import LoginManager
7+
8+
app = Flask(__name__)
9+
app.config.from_object('config.Config')
10+
11+
csrf = CSRFProtect(app)
12+
bcrypt = Bcrypt(app)
13+
db = SQLAlchemy(app)
14+
migrate = Migrate(app, db)
15+
16+
login_manager = LoginManager(app)
17+
login_manager.login_view = 'login'
18+
login_manager.login_message_category = 'info'
19+
20+
from app.models import User
21+
22+
@login_manager.user_loader
23+
def load_user(user_id):
24+
return User.query.get(int(user_id))
25+
26+
from app import routes, models, forms
1.42 KB
Binary file not shown.

0 commit comments

Comments
 (0)