Folks, I am following a tutorial.  I am getting the following error
even after I ran manage.py syncdb:

Traceback:
File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in
get_response
  92.                 response = callback(request, *callback_args,
**callback_kwargs)
File "C:\Documents and Settings\blank\My Documents\Scripts\play_django
\..\play_django\mywiki\views.py" in save_page
  57.                   page.tags.add(tag)
File "C:\Python26\lib\site-packages\django\db\models\fields
\related.py" in add
  406.                 self._add_items(self.source_col_name,
self.target_col_name, *objs)
File "C:\Python26\lib\site-packages\django\db\models\fields
\related.py" in _add_items
  473.                     [self._pk_val] + list(new_ids))
File "C:\Python26\lib\site-packages\django\db\backends\util.py" in
execute
  19.             return self.cursor.execute(sql, params)
File "C:\Python26\lib\site-packages\django\db\backends
\sqlite3\base.py" in execute
  193.         return Database.Cursor.execute(self, query, params)

Exception Type: OperationalError at /play_django/page/start/save/
Exception Value: no such table: mywiki_page_tags

My model script:
from django.db import models

# Create your models here.
class Tag(models.Model):
        name = models.CharField(max_length="20", primary_key=True)

class Page(models.Model):
        name = models.CharField(max_length="20", primary_key=True)
        content = models.TextField(blank=True)
        tags = models.ManyToManyField(Tag)

Any thoughts.  Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to