File tree 3 files changed +27
-25
lines changed
3 files changed +27
-25
lines changed Original file line number Diff line number Diff line change 5
5
6
6
app = Flask (__name__ )
7
7
8
- app .config [' SECRET_KEY' ] = ' 056e0820604e3c45b8908388be1fcaf8'
9
- app .config [' SQLALCHEMY_DATABASE_URI' ] = ' mysql://pinehead:pinehead@localhost/pinehead'
8
+ app .config [" SECRET_KEY" ] = " 056e0820604e3c45b8908388be1fcaf8"
9
+ app .config [" SQLALCHEMY_DATABASE_URI" ] = " mysql://pinehead:pinehead@localhost/pinehead"
10
10
app .config ["SQLALCHEMY_ECHO" ] = True
11
11
12
12
db = SQLAlchemy (app )
13
13
14
14
bcrypt = Bcrypt (app )
15
15
16
16
login_manager = LoginManager (app )
17
- login_manager .login_view = ' login'
18
- login_manager .login_message_category = ' info'
17
+ login_manager .login_view = " login"
18
+ login_manager .login_message_category = " info"
19
19
20
- from webapp import routes # must be the last line
20
+ # this line must be last in this file to avoid circular imports
21
+ from webapp import routes # noqa: F401,E402
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ from flask import Flask
4
+ from flask_bcrypt import Bcrypt
5
+ from flask_login import LoginManager
6
+
7
+
8
+ app = Flask (__name__ )
9
+
10
+ app .config ["SECRET_KEY" ] = "056e0820604e3c45b8908388be1fcaf8"
11
+ app .s3_prefix = os .environ ["S3_PREFIX" ]
12
+ print (f" * Album art using S3 bucket prefix { app .s3_prefix } " )
13
+
14
+ bcrypt = Bcrypt (app )
15
+
16
+ login_manager = LoginManager (app )
17
+ login_manager .login_view = "login"
18
+ login_manager .login_message_category = "info"
19
+
20
+ # this line must be last in this file to avoid circular imports
21
+ from webapp import routes # noqa: F401,E402
You can’t perform that action at this time.
0 commit comments