当尝试使用python manage.py migrate()进行迁移时,我遇到此错误:djongo.sq12mongo.SQLDecodeError:SQL失败:创建表“ auth_permission”。...
djongo版本:2.2.3 pymongo:3.2.0 sqlparse:0.2.4 的Python:3.7 mongodb版本:4.0.11 mysqlclient:1.4.2
Settings.py:
Dim objWord As Object
Dim ws As Worksheet
Dim X As Integer
Const strPath As String = "\desktop\auk\"
Dim strName As String
On Error Resume Next
strName = ActiveDocument.Bookmarks("Client").Range.Text
Set ws = ThisWorkbook.Sheets("Sheet1")
X = 1
Do Until ws.Range("A" & X) = ""
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
objWord.Documents.Open "\desktop\auk\Template.docx"
With objWord.ActiveDocument
.Bookmarks("Client").Range.Text = ws.Range("A" & X).Value
End With
If Not strName = "" Then
strName = strName & ".pdf"
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
strPath & strName, _
ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=False, _
OptimizeFor:=wdExportOptimizeForPrint, _
Range:=wdExportAllDocument, _
From:=1, to:=1, _
Item:=wdExportDocumentContent, _
IncludeDocProps:=True, _
KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, _
DocStructureTags:=True, _
BitmapMissingFonts:=True, _
UseISO19005_1:=False
End If
Set objWord = Nothing
X = X + 1
Loop
End Sub