File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66.vscode
77* .pytest_cache /
88* .pyc
9- app / assets / *
9+ assets
1010logs
1111
1212# Created by https://www.toptal.com/developers/gitignore/api/python
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def set_global_config(**kwargs):
5353def create_app (register_all = True , ** kwargs ):
5454 # http wsgi server托管启动需指定读取环境配置
5555 load_dotenv (".flaskenv" )
56- app = Flask (__name__ , static_folder = "./assets" )
56+ app = Flask (__name__ , static_folder = ".. /assets" )
5757 load_app_config (app )
5858 if register_all :
5959 from lin import Lin
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class BaseConfig(object):
3434
3535 # 默认文件上传配置
3636 FILE = {
37- "STORE_DIR" : "app/ assets" ,
37+ "STORE_DIR" : "assets" ,
3838 "SINGLE_LIMIT" : 1024 * 1024 * 2 ,
3939 "TOTAL_LIMIT" : 1024 * 1024 * 20 ,
4040 "NUMS" : 10 ,
You can’t perform that action at this time.
0 commit comments