Ok I now now

Start the development server Remember, don't use runserver and 
*localhost:8000* on PythonAnywhere 
<https://www.pythonanywhere.com/wiki/PythonAnywhere>. Instead, go back to 
your *Web* tab, and hit reload on your web app. You will then be able to go 
to *your-username.pythonanywhere.com/admin* and see the admin site up and 
running... 



W dniu środa, 18 czerwca 2014 12:43:38 UTC+2 użytkownik Dariusz Mysior 
napisał:
>
> 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/7a0fa13b-da46-470f-947d-7c1908cdb6ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to