Django/MySQL error -


i have error , i'm not sure how fix it. looked previous questions , of them because mysql-python not installed. however, have installed

    traceback (most recent call last):       file "manage.py", line 10, in <module> execute_from_command_line(sys.argv)       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line utility.execute()       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv)       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command klass = load_command_class(app_name, subcommand)       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 77, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name))       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name)       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 8, in <module> django.core.management.sql import custom_sql_for_model, emit_post_sync_signal       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/core/management/sql.py", line 9, in <module> django.db import models       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/db/__init__.py", line 40, in <module> backend = load_backend(connection.settings_dict['engine'])       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__ return getattr(connections[default_db_alias], item)       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/db/utils.py", line 93, in __getitem__ backend = load_backend(db['engine'])       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/db/utils.py", line 27, in load_backend return import_module('.base', backend_name)       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name)       file "/home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 17, in <module> raise improperlyconfigured("error loading mysqldb module: %s" % e)     django.core.exceptions.improperlyconfigured: error loading mysqldb module: /home/bradford/development/django/django_1.5.1/local/lib/python2.7/site-packages/_mysql.so: wrong elf class: elfclass32 

try

sudo apt-get install python-mysqldb 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -