- rebuild models/ir_http.py: monkeypatch Request._get_session_and_dbname bind DB by URL prefix (/game/->game, /yt_world/->yt_game), guarded by db_filter - __init__.py import ir_http to load the patch - root cause: dbfilter=^(pengyuthon|school|test|yun|game)$, nginx proxies /game/ with Host:game.pengyuthon.cn; host cannot resolve db -> nodb route table -> /game/api/* 404, login fails - after fix /game/api/codex and /game/api/login return 200
9 lines
175 B
Python
9 lines
175 B
Python
from . import codex
|
|
from . import forum
|
|
from . import announcement
|
|
from . import rule_category
|
|
from . import rule
|
|
from . import page
|
|
from . import story
|
|
from . import ir_http
|