tags:

views:

818

answers:

1

hi, Im following the django tutorial from http://docs.djangoproject.com/en/dev/intro/tutorial01/

but I have a problem at step:python manage.py sql polls

django.core.exceptions.ImproperlyConfiguraed:Error loading pysqlite2 module: No module named pysqlite2

My system is windows vista,and python version 2.5 django version 1.1

only thing I changed in setting.py is DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = 'L:/django/mysite/mysite.db'

and add 'mysite.polls' in INSTALLED_APPS = ()

+3  A: 

From browsing around it looks like early revisions of Python 2.5 may not have pysqlite2 installed for Django to take advantage of.

Therefore, you can either download and install pysqlite or you can upgrade your python installation. 2.6 works quite nicely.

Hope that helps!

Gabriel Hurley