Monday, February 8, 2010

Re: sqlite3 gives "OperationalError: no such table: django_redirect"

On Mon, Feb 8, 2010 at 6:56 PM, Phlip <phlip2005@gmail.com> wrote:
> It appears you have not run manage.py syncdb after adding
> 'django.contrib.redirects' to INSTALLED_APPS.

Even when testing into sqlite3 :memory:? I thought that obviated all
syncdb considerations...


No, for tests if the app is listed in INSTALLED_APPS then the table should be getting created by the test setup automatically. You confused me by mentioning "test " but then pointing to an actual live site to demonstrate the error. So I figured you weren't really referring to Django TestCase type tests but rather a development/test setup, and answered what appeared to be the problem with the live site. I have no idea why the table would not be getting created correctly during Django test setup.

Karen

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate