xampp - Python 2.7 Django/MySQL issue -


i using django python 2.7 on windows 7 , installed xampp , used phpmyadmin mysql included create database use in django, when went , used "python manage.py syncdb" command, got error:

traceback (most recent call last):   file "ifriends\manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   file "c:\python27\lib\site-packages\django\core\management\__init__.py", line 443, in execute_from _command_line     utility.execute()   file "c:\python27\lib\site-packages\django\core\management\__init__.py", line 382, in execute     self.fetch_command(subcommand).run_from_argv(self.argv)   file "c:\python27\lib\site-packages\django\core\management\__init__.py", line 261, in fetch_comman d     klass = load_command_class(app_name, subcommand)   file "c:\python27\lib\site-packages\django\core\management\__init__.py", line 69, in load_command_ class     module = import_module('%s.management.commands.%s' % (app_name, name))   file "c:\python27\lib\site-packages\django\utils\importlib.py", line 35, in import_module     __import__(name)   file "c:\python27\lib\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 "c:\python27\lib\site-packages\django\core\management\sql.py", line 6, in <module>     django.db import models   file "c:\python27\lib\site-packages\django\db\__init__.py", line 40, in <module>     backend = load_backend(connection.settings_dict['engine'])   file "c:\python27\lib\site-packages\django\db\__init__.py", line 34, in __getattr__     return getattr(connections[default_db_alias], item)   file "c:\python27\lib\site-packages\django\db\utils.py", line 92, in __getitem__     backend = load_backend(db['engine'])   file "c:\python27\lib\site-packages\django\db\utils.py", line 24, in load_backend     return import_module('.base', backend_name)   file "c:\python27\lib\site-packages\django\utils\importlib.py", line 35, in import_module     __import__(name)   file "c:\python27\lib\site-packages\django\db\backends\mysql\base.py", line 16, in <module>     raise improperlyconfigured("error loading mysqldb module: %s" % e) django.core.exceptions.improperlyconfigured: error loading mysqldb module: no module named mysqldb 

i have checked host, username, password , correct, want use django if can me on this, great.

you need install mysql lib windows.

http://www.codegood.com/archives/4

http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

http://www.codegood.com/archives/129


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -