m0_63622482 2021-12-04 23:45 采纳率: 0%
浏览 10
已结题

Django迁移文件出错

迁移出错怎么办,求帮忙

img

vstemcheck laentiriedsome issues
JARNINGS
 (mysq1.WO02MySQLS Strict Mode connection fordatabase motset default
      HINT:MySQL's Strict Mode fixesmanyc data integrity yproblems in MySQL. such as data truncation upon insertion,by escalating warnings into errors.Itis strongly recommended you ac
   ationstoDerIorm:
 Applyallmigrations:admin,auth,contenttypes,sessions
 mningmigrations:
       (most recent call last):
 File1 anage.py,1ine21,in<module>
   a1n()
 Filemanage.py,1ine17,inmain
     CL11eom and line(sys.argV
 File G:python1\1ib\sitepackagesdjangolcore\managementl_initpy'line381in execute_from command_line
   ntility.execute()
 FileG: ythonl\lib\sitepackagesdjango\core management_initpy,line 375,in execute
 File ackagesdjango\core\managementbase.py,1ine323,inrun from argv
   中 *cmdoptions)
 File dian ngo coremanagementbase.py,line364,inexecute
           elthan09 options
 File djangocoremanagementbase.py,line83,inwrapped
        nandle fun 来KWarES)
      G: File pythoniylih ackagesdjango\coremanagementcoandsmigrate.pyline234,inhandle
   akeinitial=fake
 FileG:pythonl\1ib\sitepackages\django\db\migrations executor.py,line91,inmigrate
   selt.xecorder. msurescnema
 File G:pythonl\1ibsite packagesdjangodbmigrationsrecorder.py,line67,in ensure_schema
   editor. create model(self.Migration)
 File pythonl\lib\sitepackages\d go db backends\base\schema.py,line 310,in create_model
   self.deferred l.extend(self. model_indexes_sqlmode1))
 Fild pythonl Iibsitepackagesdjan G odbbackendsbase schema.pyline 963,in_model_indexes_sql
        extend(self.fieldindexe output qlmodelfieldFile pythonllibsite-packages G db\backends\base\schema.py'line978in_field_indexes_sql
          field should be indexed 11 cel G ield):
 Fild pythonl\libsite packag 2Sd18 dbbackends mysql schemapy'line58in_field should be_indexed
                        mode1 Selt nnection cursormeta. db table
        pythonllib\site File Gackagesdjango\db backends mysql\introspection.pyline 146,in get_storage_engine
  return
 File G python1l1iby packagesd S1te jangoutils\functional.py'line 80,in_get
                dictLself.name nstance =self.func(instanceFile pythonl Iib\site-packagesdjangodb\backendsmysqlfeatures.pyline65in_mysql_storage_engine
   return result[o]
         NoneType object is not Or riDtable
  • 写回答

1条回答 默认 最新

  • 有问必答小助手 2021-12-06 11:27
    关注

    你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


    本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


    因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。

    评论

报告相同问题?

问题事件

  • 系统已结题 12月12日
  • 修改了问题 12月5日
  • 创建了问题 12月4日

悬赏问题

  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用