Django Syncdb Error Loading Mysqldb Module
Contents |
here for a django error loading mysqldb module no module named mysqldb quick overview of the site Help Center Detailed answers
Django Core Exceptions Improperlyconfigured Error Loading Mysqldb Module
to any questions you might have Meta Discuss the workings and policies error loading mysqldb module no module named _mysql of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Error Loading Mysqldb Module S E
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: raise improperlyconfigured error loading mysqldb module s e Sign up Error loading Mysqldb module in Python Django up vote 0 down vote favorite I am currently working on Ubuntu 14.10/Python/Django/MySQL and encountering the following error when I try to run: $python manage.py makemigrations polls or $python manage.py migrate polls I have also tried syncdb The error is: (Aaronpythonenv)aaron@aaron-N550JK:~/mysite$ python manage.py makemigrations polls Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/aaron/Aaronpythonenv/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/core/management/init.py", line 338, in execute_from_command_line utility.execute() File "/home/aaron/Aaronpythonenv/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/core/management/init.py", line 312, in execute django.setup() File "/home/aaron/Aaronpythonenv/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/init.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/home/aaron/Aaronpythonenv/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/apps/registry.py", line 108, in populate app_config.import_models(all_models) File "/home/aaron/Aaronpythonenv/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/apps/config.py", line 198, in import_models self.models_module = import_module(models_module_name) File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/home/aaron/Aaronpythonenv/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/contrib/auth/models.py", line 41, in class Permission(models.Model): File "/home/aaron/Aaronpythonenv/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/db/models/base.py", line 139, in new new_class.add_to_cla
here for
Importerror: No Module Named 'configparser'
a quick overview of the site Help Center
Importerror No Module Named 'mysqldb' Python 3
Detailed answers to any questions you might have Meta Discuss the workings no module named mysqldb windows and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://stackoverflow.com/questions/29631430/error-loading-mysqldb-module-in-python-django developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; http://stackoverflow.com/questions/15312732/django-core-exceptions-improperlyconfigured-error-loading-mysqldb-module-no-mo it only takes a minute: Sign up django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb up vote 48 down vote favorite 10 The problem Im facing while trying to connect to database for mysql. I have also given the database settings that i have used. Traceback (most recent call last): File "manage.py", line 10, in here for a quick overview of http://stackoverflow.com/questions/12772687/django-error-loading-mysqldb-module-no-module-named-mysqldb the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions error loading Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up django - Error loading MySQLdb module: error loading mysqldb No module named MySQLdb up vote 3 down vote favorite 1 I'm using Django 1.4.1 with Active Python 2.7 on Win7. I have installed the MySQL module using pypm install mysql-python. The database engine is django.db.backends.mysql. import MySQLdb works in the interactive shell. .\manage.py syncdb created the tables with no problem. However, when I open the site in the browser, I get Error loading MySQLdb module: No module named MySQLdb: Environment: Request Method: GET Request URL: http://whatever/ Django Version: 1.4.1 Python Version: 2.7.2 Installed Applications: ('django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response 89. response = middleware_method(request) File "C:\Python27\lib\site-packages\django\contrib\sessions\middleware.py" in process_request 10. engine = import_module(settings.SESSION_ENGINE) File "C:\Python27\lib\site-packages\django\utils\importlib.py" in import_module 35. __import__(name) File "C:\Python27\lib\site-packages\django\contrib\sessions\backends\cached_db.py" in