no such table: django_session when doing the tutorial

2,140 views
Skip to first unread message

merabi

unread,
Aug 4, 2010, 6:44:04 AM8/4/10
to Django users
Hi.
im using python 2.6, django 1.1, eclipse3.4, and pydev 1.6, macbook
pro mac os 10.6.4.
trying to do the tutorial: http://docs.djangoproject.com/en/dev/intro/tutorial02/

first of all, i DID syncdb. -> no problem.
i check using dbshell, .dump. -> says django_session DOES EXISTS.

Changed urls.py:

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
# Example:
# (r'^mysite/', include('mysite.foo.urls')),

# Uncomment the admin/doc line below and add
'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)

Added "django.contrib.admin" to INSTALLED_APPS on setting.py.
btw,
django.contrib.auth,
django.contrib.session,
django.contrib.site
are also listed.

When I tried to access http://localhost:8000/admin/
it says:

DatabaseError: no such table: django_session

Why is that????

after the error i did syncdb, and it says No fixtures found...

Alexandre González

unread,
Aug 4, 2010, 7:06:04 AM8/4/10
to django...@googlegroups.com
Have you run the script manage.py with syncdb option?

python manage.py syncdb


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt and/or .pptx
http://mirblu.com

Yoji H

unread,
Aug 4, 2010, 7:39:17 AM8/4/10
to django...@googlegroups.com
i did as i wrote above.

2010/8/4 Alexandre González <agonz...@gmail.com>

Yoji H

unread,
Aug 4, 2010, 7:40:17 AM8/4/10
to django...@googlegroups.com
this is just a guess but i think the path is not set right.
but i don know how to set it correctly.

Alexandre González

unread,
Aug 5, 2010, 7:18:26 AM8/5/10
to django...@googlegroups.com
Sorry Yoji, I did a fast read and I didn't see it.

Can you paste your complete settings.py 
Reply all
Reply to author
Forward
0 new messages