Kaynağa Gözat

Flask路径设置

Hai Lin 3 gün önce
ebeveyn
işleme
8a77d60654
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -16,7 +16,7 @@ from datetime import datetime
 # Suppress InsecureRequestWarning
 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
 
-app = Flask(__name__, static_folder='static', static_url_path='/static')
+app = Flask(__name__, static_folder='static', static_url_path='/manager/static')
 app.secret_key = 'genealogy_secret_key'
 app.config['UPLOAD_FOLDER'] = 'uploads'
 os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)