Python 总目录链接 解决 python No migrations to apply 无法生成表 1、删除app目录下的migrations文件。 2、删除django_migrations表下关于app的所有数据。 delete from django_migrations where app=xxx; 3、重新生成迁移即可。 Pycharm 正则替换。 1、command+R打开搜索替换。 2、勾选Regex。 3、头部加载模板: {% load static from staticfiles %} 相关文章: