ENGINE should be set to 'django.db.backends.mysql' not 'mysql', if you are using mysql.
On Sep 15, 1:44 am, Odkoo Ch <oderdene...@gmail.com> wrote: > Hello. everyone > > help me > > DATABASES = { > 'default': { > 'ENGINE': 'mysql', # Add 'postgresql_psycopg2', 'postgresql', > 'mysql', 'sqlite3' or 'oracle'. > 'NAME': 'car', # Or path to database file if > using sqlite3. > 'USER': 'easycar', # Not used with sqlite3. > 'PASSWORD': 'easycar', # Not used with sqlite3. > 'HOST': 'localhost', # Set to empty string for > localhost. Not used with sqlite3. > 'PORT': '3306', # Set to empty string for > default. Not used with sqlite3. > } > > } > > python manage.py syncdb > > od...@odkoo-desktop:~/workspace/car/src/car$ python manage.py syncdb > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File > "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", > line 438, in execute_manager > utility.execute() > File > "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", > line 379, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", > line 191, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", > line 220, in execute > output = self.handle(*args, **options) > File > "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", > line 351, in handle > return self.handle_noargs(**options) > File > "/usr/local/lib/python2.6/dist-packages/django/core/management/commands/syncdb.py", > line 52, in handle_noargs > cursor = connection.cursor() > File > "/usr/local/lib/python2.6/dist-packages/django/db/backends/dummy/base.py", > line 15, in complain > raise ImproperlyConfigured("You haven't set the database ENGINE setting > yet.") > django.core.exceptions.ImproperlyConfigured: You haven't set the database > ENGINE setting yet. > > to worshipful Od-Erdene.Ch -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.