【发布时间】:2010-12-14 10:39:20
【问题描述】:
我决定看看 django-cms。查看文档后,我使用
克隆了存储库git clone https://github.com/divio/django-cms.git
然后我使用安装它
sudo python setup.py install
我已经安装了 django 1.2.3。我移动到example 目录并运行syncdb,它创建了以下表格:
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_admin_log
Creating table django_site
Creating table sampleapp_category
Creating table sampleapp_picture
Creating table south_migrationhistory
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes...
我们可以清楚地看到 cms 表没有创建。我在运行服务器和浏览http://localhost:8000/时显然遇到了这个问题@
DatabaseError: no such table: cms_page
我查看了文档,发现我符合有关版本的要求,但很明显,我做错了。任何帮助将不胜感激。
【问题讨论】:
-
您项目的设置文件中是否启用了该应用?我认为这很可能是问题所在。
标签: python django django-cms