It seems there is no such table "DatabaseError: no such table: polls_choice "
./manage syncdb would help :) On Apr 15, 10:43 am, Vetc <k.he...@gmail.com> wrote: > Hello, > > I am a new user of Django, i am following the instructions at this web > page (http://docs.djangoproject.com/en/1.1/intro/tutorial01/#playing- > with-the-api). > > Everything works fine untill the last part. when i enter the command > line : p.choice_set.all() I get these errors : > > >>> p.choice_set.all() > > Traceback (most recent call last): > File "<console>", line 1, in <module> > File "C:\Python26\lib\site-packages\django\db\models\query.py", line > 66, in __ > repr__ > data = list(self[:REPR_OUTPUT_SIZE + 1]) > File "C:\Python26\lib\site-packages\django\db\models\query.py", line > 81, in __ > len__ > self._result_cache.extend(list(self._iter)) > File "C:\Python26\lib\site-packages\django\db\models\query.py", line > 267, in i > terator > for row in compiler.results_iter(): > File "C:\Python26\lib\site-packages\django\db\models\sql > \compiler.py", line 67 > 4, in results_iter > for rows in self.execute_sql(MULTI): > File "C:\Python26\lib\site-packages\django\db\models\sql > \compiler.py", line 72 > 9, in execute_sql > cursor.execute(sql, params) > File "C:\Python26\lib\site-packages\django\db\backends\util.py", > line 19, in e > xecute > return self.cursor.execute(sql, params) > File "C:\Python26\lib\site-packages\django\db\backends > \sqlite3\base.py", line > 200, in execute > return Database.Cursor.execute(self, query, params) > DatabaseError: no such table: polls_choice > > Could you please tell me what to do? > > Thank you for your assistance. > With best regards. > Hervé Kouakou. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.