Google App Engine / Django-尝试编写只读数据库

时间:2019-10-11 02:07:42

标签: django sqlite google-app-engine readonly chmod

如何授予db.sqlite3权限?我无法使用其Google Shell云访问源文件...我不敢相信Google使其变得如此复杂...

OperationalError at /admin/login/
attempt to write a readonly database
Request Method: POST
Request URL:    https://******.appspot.com/admin/login/?next=/admin/
Django Version: 2.2.5
Exception Type: OperationalError
Exception Value:    
attempt to write a readonly database
Exception Location: /env/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 383
Python Executable:  /env/bin/python3.7
Python Version: 3.7.4
Python Path:    
['/srv',
 '/env/bin',
 '/opt/python3.7/lib/python37.zip',
 '/opt/python3.7/lib/python3.7',
 '/opt/python3.7/lib/python3.7/lib-dynload',
 '/env/lib/python3.7/site-packages']
Server time:    Fri, 11 Oct 2019 02:03:43 +0000

0 个答案:

没有答案