dcramer/django-oursql — Issue #10: Fresh Django install with django_oursql backend = TypeError: __init__() takes exactly 2 arguments (1 given)
Author: Evanlec
Created: 2012-01-21 06:38:15+00:00
State: open

Installed fresh virtualenv with only django, oursql, and django-oursql, receving this after setting backend to 'mysql_oursql.standard' and trying to run `python manage.py syncdb':

(venv)el@arch64: ~/venv/lam % python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "/home/el/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/home/el/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/el/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/el/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/el/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/el/venv/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 7, in
from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal
File "/home/el/venv/lib/python2.7/site-packages/django/core/management/sql.py", line 6, in
from django.db import models
File "/home/el/venv/lib/python2.7/site-packages/django/db/__init__.py", line 78, in
connection = connections[DEFAULT_DB_ALIAS]
File "/home/el/venv/lib/python2.7/site-packages/django/db/utils.py", line 94, in __getitem__
conn = backend.DatabaseWrapper(db, alias)
File "/home/el/venv/lib/python2.7/site-packages/django_oursql-0.1-py2.7.egg/mysql_oursql/standard/base.py", line 130, in __init__
self.features = DatabaseFeatures()
TypeError: __init__() takes exactly 2 arguments (1 given)