Im trying to run the tests in Django but get the following error. 

(djangodev) Anands-MacBook-Pro:tests premlaks$ ./runtests.py 
--settings=test_sqlite requests


  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/models/query.py",
 
line 1072, in _fetch_all

    self._result_cache = list(self.iterator())

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/models/query.py",
 
line 125, in __iter__

    for row in compiler.results_iter():

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/models/sql/compiler.py",
 
line 802, in results_iter

    results = self.execute_sql(MULTI)

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/models/sql/compiler.py",
 
line 853, in execute_sql

    cursor.execute(sql, params)

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/backends/utils.py",
 
line 67, in execute

    return self.cursor.execute(sql, params)

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/utils.py",
 
line 94, in __exit__

    six.reraise(dj_exc_type, dj_exc_value, traceback)

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/utils/six.py",
 
line 685, in reraise

    raise value.with_traceback(tb)

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/backends/utils.py",
 
line 67, in execute

    return self.cursor.execute(sql, params)

  File 
"/Users/premanandlakshmanan/Documents/django-contribute/django/django/db/backends/sqlite3/base.py",
 
line 334, in execute

    return Database.Cursor.execute(self, query, params)

django.db.utils.ProgrammingError: Incorrect number of bindings supplied. 
The current statement uses 0, and there are 1 supplied.



and here is my test_sqllite file.


DATABASES = {

    'default': {

        'ENGINE': 'django.db.backends.sqlite3',

    },

    #'other': {

    #    'ENGINE': 'django.db.backends.sqlite3',

    #}

}


SECRET_KEY = "django_tests_secret_key"


# Use a fast hasher to speed up tests.

PASSWORD_HASHERS = [

    'django.contrib.auth.hashers.MD5PasswordHasher',

]




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/863b5d59-897b-4b66-ad39-2dce78effd42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to