django
1. After deleting the app's migration file, annotate the app's registration information, models can still be used, logic can still be used, and views can be used.
报错 TemplateDoesNotExist at xxx rest_framework/api.html
TemplateDoesNotExist at /api/drfbooks/
rest_framework/api.html
Solution
Add in setting.py file
'rest_framework'
Register this application
FLask
- No module named flask.main; 'flask' is a package and cannot be directly executed
更新FLask即可
pip3 install --upgrade Flask