Or perhaps they will remain trivial for a while.

I added the name as such:
DATABASE_NAME = '/Django/mysite/mysite_data.db'
{I have tried w/ ~, w/o leading /, with /john/Djan..., and w/ john/
Dja...}

My project looks like this:
j...@john-laptop:~/Django/mysite$ ls -l
total 24
-rw-r--r-- 1 john john    0 2009-02-25 22:48 __init__.py
-rw-r--r-- 1 john john  133 2009-02-25 23:09 __init__.pyc
-rw-r--r-- 1 john john  546 2009-02-25 22:48 manage.py
-rw-r--r-- 1 john john 2805 2009-02-26 05:03 settings.py
-rw-r--r-- 1 john john 1699 2009-02-26 05:03 settings.pyc
-rw-r--r-- 1 john john  537 2009-02-25 22:48 urls.py
-rw-r--r-- 1 john john  233 2009-02-25 23:11 urls.pyc
j...@john-laptop:~/Django/mysite$

Now I am getting:
  File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/
base.py", line 145, in _cursor
    self.connection = Database.connect(**kwargs)
sqlite3.OperationalError: unable to open database file



On Feb 26, 4:19 am, john <johnhitz...@msn.com> wrote:
> WOW!!! That was painfully obvious.  As I said newbe...to python,
> django, and programming.  Hopefully my questions will get more
> interesting soon!
>
> Thanks
>
> On Feb 26, 3:29 am, Karen Tracey <kmtra...@gmail.com> wrote:
>
> > On Thu, Feb 26, 2009 at 2:41 AM, john <johnhitz...@msn.com> wrote:
>
> > > 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):
> > > [snip]
> > >    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.
>
> > You need to decide on a name and fill on in here.  (Note the comments don't
> > say "Not used with sqlite3" for this one, as they do for the following
> > ones.  The DATABASE_NAME is required for 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.
>
> > > [snip]
> > > 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.
>
> > Yes, it will be created automatically.  So if the file you specify in
> > DATABASE_NAME does not exist, it will be created.  You still have to specify
> > a name for it, though, as described here:
>
> >http://docs.djangoproject.com/en/dev/intro/tutorial01/#database-setup
>
> > Karen
--~--~---------~--~----~------------~-------~--~----~
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