好吧,请原谅我问了这样一个问题。但是搜索并没有帮到我。django-admin.py startproject mysite好了,现在我可以看到:total 12-rwxr-xr-x 1 michael michael 249 Oct 2 08:14 manage.py
drwxrwxr-x 2 michael michae
我正在为一个简单的博客/cms运行Flask教程,但我似乎无法打开/创建数据库。我当前在Windows7上,当我去查看应用程序时,我得到一个sqlite3.OperationalError OperationalError: unable to open database fileerror on the webpage (无法打开网页上的数据库文件错误)。
google_appengine\google\appengine\datastore\datastore_sqlite_stub.py", line 604, in __init__sqlite3当我尝试从带有属性“-datastore_path C:\temp\data.db‘的控制台运行app时,系统会创建该文件(约9KB),但仍然无法打开数据库。
该程序包括一个终端,所以我将制作一个bash脚本,允许根执行,例如:>db,它将打开数据库文件夹,以便快速盘点等等。但我不想允许雇主这样做。问题是,如果我退出了chmod雇主的包含文件夹的权限,那么用户就不允许使用该程序(sqlite3.OperationalError: unable to open database file)。