Skip to content

Commit 2f00951

Browse files
committed
edit doc
1 parent f7c9aed commit 2f00951

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

doc/doc_en/doc_question.md

+10
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,14 @@ Error: django.db.utils.DatabaseError: database disk image is malformed (the db.s
133133

134134
Do not set the django-mdict folder and the folder where the dictionary is located as the synchronization folder of the synchronization software.
135135

136+
22. django.db.utils.DatabaseError: database disk image is malformed
136137

138+
a. [Download sqlite tool](https://www.sqlite.org/download.html)
139+
140+
b. [Repair db.sqlite3 file](https://blog.csdn.net/qq_41539778/article/details/136531120)
141+
142+
c. Rename exported file to db.sqlite3.
143+
144+
23. django.db.utils.OperationalError: attempt to write a readonly database
145+
146+
Change db.sqlite3 file to read and write permission.

doc/doc_question.md

+10
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,14 @@ pip install -U django-js-asset
127127

128128
不要将django-mdict文件夹以及词典所在文件夹设置为同步软件的同步文件夹。
129129

130+
22. django.db.utils.DatabaseError: database disk image is malformed
130131

132+
a. [下载sqlite工具](https://www.sqlite.org/download.html)
133+
134+
b. [修复db.sqlite3文件](https://blog.csdn.net/qq_41539778/article/details/136531120)
135+
136+
c. 将导出文件重命名为db.sqlite3.
137+
138+
23. django.db.utils.OperationalError: attempt to write a readonly database
139+
140+
更改db.sqlite3文件的读写权限.

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ services:
88
- .:/code
99
- /path/to/mdict/library:/library
1010
ports:
11-
- "18000:8090"
11+
- "18000:18000"

0 commit comments

Comments
 (0)