I am trying to follow the Django | Writing your first Django ap part 1
tutorial.  When I get to the python manage.py syncdb command I get the
following:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 340, in execute_manager
    utility.execute()
  File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.5/site-packages/django/core/management/
base.py", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.5/site-packages/django/core/management/
base.py", line 219, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.5/site-packages/django/core/management/
base.py", line 348, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.5/site-packages/django/core/management/
commands/syncdb.py", line 51, in handle_noargs
    cursor = connection.cursor()
  File "/usr/lib/python2.5/site-packages/django/db/backends/
__init__.py", line 56, in cursor
    cursor = self._cursor(settings)
  File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/
base.py", line 139, in _cursor
    raise ImproperlyConfigured, "Please fill out DATABASE_NAME in the
settings module before using the database."
django.core.exceptions.ImproperlyConfigured: Please fill out
DATABASE_NAME in the settings module before using the database.
j...@john-laptop:~/Django/mysite$ python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 340, in execute_manager
    utility.execute()
  File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.5/site-packages/django/core/management/
base.py", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.5/site-packages/django/core/management/
base.py", line 219, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.5/site-packages/django/core/management/
base.py", line 348, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.5/site-packages/django/core/management/
commands/syncdb.py", line 51, in handle_noargs
    cursor = connection.cursor()
  File "/usr/lib/python2.5/site-packages/django/db/backends/
__init__.py", line 56, in cursor
    cursor = self._cursor(settings)
  File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/
base.py", line 139, in _cursor
    raise ImproperlyConfigured, "Please fill out DATABASE_NAME in the
settings module before using the database."
django.core.exceptions.ImproperlyConfigured: Please fill out
DATABASE_NAME in the settings module before using the database.


Here is how my settings. py file is settup.

ADMINS = (
    # ('Your Name', 'your_em...@domain.com'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = ''             # Or path to database file if using
sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost.
Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not
used with sqlite3.

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as
your
# system time zone.
TIME_ZONE = 'Am

My understanding is, that because I am using sqlite it will
automatically create a database file when I run the syncdb command.  I
had a slightly different experience with Turbogears.

My thought is that my sqlite is not set up correctly, but I don't even
know where to start looking.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to