以下是以Django为例的tutotrial:http://lightbird.net/dbe/todo_list.html
本教程说:
"这改变了我们的桌子布局,我们将不得不要求Django重置
manage.py reset todo; manage.py syncdb
"
但是,当我运行manage.py reset todo
时,我得到了一个错误:
$ python manage.py reset todo
- Unknown command: 'reset'
这是因为我使用的是sqlite3而不是PostgreSQL吗?
Can somebody tell me what the command is to reset the database?个
命令:python manage.py sqlclear todo
返回错误:
$ python manage.py sqlclear todo
CommandError: App with label todo could not be found.
Are you sure your INSTALLED_APPS setting is correct?
因此,我将‘TODO’添加到settings.py中的installed_apps中,并再次运行python manage.py sqlclear todo
,导致以下错误:
$ python manage.py sqlclear todo
- NameError: name 'admin' is not defined