ソースを参照

Don't unnecessarily encode os.path.join()

version-14
Aditya Hase 8年前
コミット
0a6ecbf2c5
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      frappe/app.py

+ 2
- 2
frappe/app.py ファイルの表示

@@ -213,11 +213,11 @@ def serve(port=8000, profile=False, site=None, sites_path='.'):

if not os.environ.get('NO_STATICS'):
application = SharedDataMiddleware(application, {
b'/assets': os.path.join(sites_path, 'assets').encode("utf-8"),
b'/assets': os.path.join(sites_path, 'assets'),
})

application = StaticDataMiddleware(application, {
b'/files': os.path.abspath(sites_path).encode("utf-8")
b'/files': os.path.abspath(sites_path)
})

application.debug = True


読み込み中…
キャンセル
保存