Sunday, July 25, 2010

No fixtures found

I got the message 'No fixtures found' when I ran the python manage.py
syncdb command. I am working in sqlite3 which seems to be working as
evidenced by the fact that if I type sqlite in a terminal I get the
sqlite>.

The first time I got the following output, followed by the
aforementioned message. Subsequent syncdb's just return the
message.

Creating table django_admin_log
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
...
Installing index for admin.LogEntry model
Installing index for auth.Permission model
Installing index for auth.Group_permissions model
Installing index for auth.User_user_permissions model
Installing index for auth.User_groups model
Installing index for auth.Message model
No fixtures found.

The trace back is as follows.
Request URL: http://127.0.0.1:8000/time/plus/1/
Django Version: 1.2.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'mysite.books']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.common.CommonMiddleware')


Traceback:
File "/home/john/Django/lib/python2.6/site-packages/Django-1.2.1-
py2.6.egg/django/core/handlers/base.py" in get_response
91. request.path_info)
File "/home/john/Django/lib/python2.6/site-packages/Django-1.2.1-
py2.6.egg/django/core/urlresolvers.py" in resolve
214. for pattern in self.url_patterns:
File "/home/john/Django/lib/python2.6/site-packages/Django-1.2.1-
py2.6.egg/django/core/urlresolvers.py" in _get_url_patterns
243. patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "/home/john/Django/lib/python2.6/site-packages/Django-1.2.1-
py2.6.egg/django/core/urlresolvers.py" in _get_urlconf_module
238. self._urlconf_module =
import_module(self.urlconf_name)
File "/home/john/Django/lib/python2.6/site-packages/Django-1.2.1-
py2.6.egg/django/utils/importlib.py" in import_module
35. __import__(name)
File "/home/john/mysite/../mysite/urls.py" in <module>
21. (r'^admin/',
include(admin.site.urls)),

Exception Type: NameError at /time/plus/1/
Exception Value: name 'admin' is not defined

--
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.

No comments:

Post a Comment