Pinax:出乎意料:“没有这样的表:profiles_profile”
注意:pinax 0.7.3
我只是使用 sqlite3 运行 basic_project 的克隆。
以前工作得很好。休眠我的笔记本电脑,当我打开并 尝试再次登录,我收到 -没有这样的表:profiles_profile
使用 sqlite3 客户端打开数据库 dev.db,但我没有看到它 那里。
停止服务器,删除数据库,执行同步数据库,创建一个 全新的 dev.db 并且也缺少该表。 我正在研究配置文件应用程序的views.py,但我确信我 没有做任何渡渡鸟。
settings.py 将 basic_profiles
作为已安装的应用程序。
异常显示查询触发为 -'选择“profiles_profile”。“id”,“profiles_profile”。“user_id”,“profiles_profile”。“名称”,“profiles_profile”。“关于”,“profiles_profile”。“位置”,“profiles_profile”。网站”来自“profiles_profile”,其中“profiles_profile”。“user_id”=? '
该表结构与 basic_profiles
相同,无法确定在查看这些文件时我可能在哪里输入错误。
有什么指点吗?
Note : pinax 0.7.3
I'm just running a clone of basic_project with sqlite3.
It was working fine yest. Hibernated my laptop and when I opened and
try to login again, I got -no such table: profiles_profile
Opened the database dev.db using the sqlite3 client and I don't see it
there.
Stopped the server, deleted the DB, did a syncdb which created a
completely new dev.db and it too is missing the table.
I was looking into the views.py of the profiles app, but I'm sure I
didn't do any Dodo in it.
The settings.py has the basic_profiles
as installed apps.
The exception shows the query fired as -'SELECT "profiles_profile"."id", "profiles_profile"."user_id", "profiles_profile"."name", "profiles_profile"."about", "profiles_profile"."location", "profiles_profile"."website" FROM "profiles_profile" WHERE "profiles_profile"."user_id" = ? '
That table structure is the same as of basic_profiles
, Can't figure where I could've mistyped while viewing these files.
Any pointers ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道我哪里搞砸了,因此我再次克隆了该项目,但没有看到问题。
不过很确定这是我的错。
Didn't figure where I messed up, hence I cloned the project again and haven't seen the issue.
Pretty sure it was my fault though.