Hi, you need install this: pip install MySQL-python :D
2014-06-18 11:43 GMT+01:00 Dariusz Mysior <mysior.da...@gmail.com>: > I use pythonanywhere.com and now I install Python 2.7 and Django 1.6 with > virtualenv > > My settings.py is > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': 'daro822$db1', > 'USER': 'daro822', > 'PASSWORD': '*****', > 'HOST': 'mysql.server', > 'PORT': '', > > I start project mysite and I have a problem in Bash with command > > python manage.py runserver > > > I have a comment like this > > Traceback (most recent call last): > File "manage.py", line 10, in <module> > execute_from_command_line(sys.argv) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 399, in execute_from_command_line > utility.execute() > File > "/home/daro822/.virtualenvs/django16/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/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py", > line 242, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py", > line 280, in execute > translation.activate('en-us') > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", > line 130, in activate > return _trans.activate(language) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 188, in activate > _active.value = translation(language) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 177, in translation > default_translation = _fetch(settings.LANGUAGE_CODE) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 159, in _fetch > app = import_module(appname) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py", > line 40, in import_module > __import__(name) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", > line 6, in <module> > from django.contrib.admin.sites import AdminSite, site > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/sites.py", > line 4, in <module> > from django.contrib.admin.forms import AdminAuthenticationForm > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/forms.py", > line 6, in <module> > from django.contrib.auth.forms import AuthenticationForm > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/forms.py", > line 17, in <module> > from django.contrib.auth.models import User > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/models.py", > line 48, in <module> > class Permission(models.Model): > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py", > line 96, in __new__ > new_class.add_to_class('_meta', Options(meta, **kwargs)) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py", > line 264, in add_to_class > value.contribute_to_class(cls, name) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/options.py", > line 124, in contribute_to_class > self.db_table = truncate_name(self.db_table, > connection.ops.max_name_length()) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/__init__.py", > line 34, in __getattr__ > return getattr(connections[DEFAULT_DB_ALIAS], item) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py", > line 198, in __getitem__ > backend = load_backend(db['ENGINE']) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py", > line 113, in load_backend > return import_module('%s.base' % backend_name) > File > "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py", > line 40, in import_module > __import__(name) > File > "/home/daro822/.virtualenvs/django16/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: No > module named MySQLdb > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a4fd7e10-6032-4e68-ae65-ffd41e85c733%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a4fd7e10-6032-4e68-ae65-ffd41e85c733%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Helton Alves Desenvolvedor web Graduado em Sistemas de Informação - FACIMP Cursando Metodologia do Ensino Superior - INESPO -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABcoSmAoa_J7GK5enOhG_anns3ZhN1OWhryCdT3iS0%3DBr4UsQA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.