Even if your simple app dosen't do anything with the database, django
still needs those values populated in the settings.py file as the
applications inside the INSTALLED_APPS requires it.

e.g. by default your settings.py will contain:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
)


python goes and builds tables for these e.g. it will create a table
called django_session.

Jim




On Dec 13, 3:39 pm, intercoder <[EMAIL PROTECTED]> wrote:
> I would like a little help in trying to figure out why my /now/ web
> page
> is not working.  I am running Django 0.96
>
> I followed all the instructions from the beginning of the book to the
> letter as far as I can tell. I have all the files that are required
> according to Chapter 2, Starting a project.  See below:
> __init__.py
> manage.py
> settings.py
> urls.py
>
> I made the /now/ program in Idle and saved it in the directory
> 'mysite'.
>
> I started up the django server and tried to run the page. This is the
> error message I got:
>
>  Traceback (most recent call last):
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/core/servers/
> basehttp.py",
> line 272, in run>     self.result = application(self.environ, 
> self.start_response)
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/core/servers/
> basehttp.py",
> line 614, in __call__>     return self.application(environ, start_response)
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/core/handlers/wsgi.py",
> line 189, in __call__>     response = self.get_response(request)
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/core/handlers/base.py",
> line 115, in get_response>     receivers = 
> dispatcher.send(signal=signals.got_request_exception)
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/dispatch/dispatcher.py",
> line 358, in send>     sender=sender,
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/dispatch/robustapply.py",
> line 47, in robustApply>     return receiver(*arguments, **named)
>
> >   File "/usr/pkg/lib/python2.4/site-packages/django/db/__init__.py",
>
> line 47, in _rollback_on_exception>     transaction.rollback_unless_managed()
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/db/transaction.py", line
> 145, in rollback_unless_managed>     connection._rollback()
>
> >   File
>
> "/usr/pkg/lib/python2.4/site-packages/django/db/backends/dummy/
> base.py",
> line 13, in complain
>
> >     raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE
> setting yet."
>
> > ImproperlyConfigured: You haven't set the DATABASE_ENGINE setting yet.
>
> I see that it says I haven't set the Database engine yet. According to
> '
> Your first view: Dynamic content' The second paragraph says:
>
> This simple example doesn't involve a database or any sort of user
> input
> -- just the output of your server's internal clock.
>
> I assumed that I wouldn't have to have the database engine set up yet.
> Was I wrong in that assumption? Could there be something else I have
> done wrong?
>
> I would appreciate any input.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to