app.md ļ˵ĿĿ¼ṹļָAIɿҪļ
app.py ڣtornadoܹʵ֣MVC㾭ܹ
test.py ԪýűļҪģ//IJԣдһЩʱԵIJ
app Ŀ
init.py
controllers (MVCеĿƲģ)
auth.py ȨйصĿƲ㷽漰¼עᡢ˳
base.py Ʋ ࣬ṩһĵ¼̬ȡHandler̳ʹã
home.py ̨ҳࣩ
init.py
__pycache__
auth.cpython-311.pyc
base.cpython-311.pyc
home.cpython-311.pyc
init.cpython-311.pyc
models (ҵģͲ)
db.py sqliteݿʲ㡾modelڴչmysql/pgsqlݿ
user.py Ӧûصmodel
init.py
__pycache__
db.cpython-311.pyc
user.cpython-311.pyc
init.cpython-311.pyc
static (viewеľ̬Դ)
css ʽ
base.css ʽ
js JSű
base.js (ű)
templates view-ͼ
base.html ģ壩
index.html ̨ҳģ壩
login.html ¼ҳģ壩
register.html (עҳģ)
__pycache__
init.cpython-311.pyc
database sqliteݿĿ¼ڴsqliteļsqlűļ
app.db ǰԶsqLiteݿ⣬ͨinit_db() ʱ鴴
venv python3.11´venvռ䣬python -m venv venv Ҫڴ˿ռɣ