модуль для работы с mysql установлен
root@OpenWrt:~# python
Python 2.5.2 (r252:60911, Feb 26 2008, 19:48:30)
[GCC 4.1.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>>
./manage.py sql
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/opt/lib/python2.5/site-packages/django/core/management/__init__.py", line 272, in execute_manager
utility.execute()
File "/opt/lib/python2.5/site-packages/django/core/management/__init__.py", line 219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/lib/python2.5/site-packages/django/core/management/base.py", line 72, in run_from_argv
self.execute(*args, **options.__dict__)
File "/opt/lib/python2.5/site-packages/django/core/management/base.py", line 85, in execute
self.validate()
File "/opt/lib/python2.5/site-packages/django/core/management/base.py", line 112, in validate
num_errors = get_validation_errors(s, app)
File "/opt/lib/python2.5/site-packages/django/core/management/validation.py", line 68, in get_validation_errors
db_version = connection.get_server_version()
File "/opt/lib/python2.5/site-packages/django/db/backends/mysql/base.py", line 201, in get_server_version
self.cursor()
File "/opt/lib/python2.5/site-packages/django/db/backends/__init__.py", line 33, in cursor
cursor = self._cursor(settings)
File "/opt/lib/python2.5/site-packages/django/db/backends/mysql/base.py", line 188, in _cursor
self.connection = Database.connect(**kwargs)
File "/opt/lib/python2.5/site-packages/MySQLdb/__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "/opt/lib/python2.5/site-packages/MySQLdb/connections.py", line 198, in __init__
self.set_character_set(charset)
File "/opt/lib/python2.5/site-packages/MySQLdb/connections.py", line 282, in set_character_set
self.store_result()
SystemError: NULL object passed to Py_BuildValue