Hi,

I am seeing a similar problem.

Below is the settings file and the stack trace.

This error seems to come and go.  I don't make any changes and it
appears and then goes without any change.

It seems to have to do with writing to the database.

Can someone explain what the error is to help me understand what to
change?  Thanks, Ralph

The typical code is something like this:

 entry.ip = request.META["REMOTE_ADDR"]
 entry.eventid = int(event_id)
 entry.put()

The settings.py file is:

# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Django settings for this project.

import os

DEBUG = True

TEMPLATE_DEBUG = DEBUG

ADMINS = (
    ('XXX', 'x...@gmail.com'),
        )

MANAGERS = ADMINS

DATABASE_ENGINE = ''           # 'postgresql_psycopg2', 'postgresql',
'mysql', 'sqlite3' or 'ado_mssql'.
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://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
# although not all variations may be possible on all operating
systems.
# If running in a Windows environment this must be set to the same as
your
# system time zone.
TIME_ZONE = 'America/New_York'  # i.e., Brooklyn

# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as
not
# to load the internationalization machinery.
USE_I18N = False

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com";
MEDIA_URL = ''

# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Whether to append trailing slashes to URLs.
APPEND_SLASH = False

# Make this unique, and don't share it with anybody.
SECRET_KEY = '123'

# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
)

ROOT_URLCONF = 'urls'

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.common.CommonMiddleware'
)


TEMPLATE_DIRS = (
    os.path.join(os.path.dirname(__file__), 'templates'),
    # Put strings here, like "/home/html/django_templates" or "C:/www/
django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.contenttypes',
)

WEBSITE='http://move.brooklynmarathon.com/'


The stack trace is:
#

   1.
      04-28 02:02PM 14.612 /evententry/165101 500 133ms 300cpu_ms
145api_cpu_ms 2kb Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:
1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR
3.5.30729),gzip(gfe),gzip(gfe)
      See details

      65.220.69.114 - fedex1 [28/Apr/2010:14:02:14 -0700] "POST /
evententry/165101 HTTP/1.1" 500 2188 "http://move.brooklynmarathon.com/
evententry/165101" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:
1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR
3.5.30729),gzip(gfe),gzip(gfe)" "move.brooklynmarathon.com"

   2.
      E 04-28 02:02PM 14.743

      <class 'django.core.exceptions.ImproperlyConfigured'>: You
haven't set the DATABASE_ENGINE setting yet.
      Traceback (most recent call last):
        File "/base/data/home/apps/move/2.341563111878929596/
django_bootstrap.py", line 67, in main
          util.run_wsgi_app(application)
        File "/base/python_runtime/python_lib/versions/1/google/
appengine/ext/webapp/util.py", line 97, in run_wsgi_app
          run_bare_wsgi_app(add_wsgi_middleware(application))
        File "/base/python_runtime/python_lib/versions/1/google/
appengine/ext/webapp/util.py", line 115, in run_bare_wsgi_app
          result = application(env, _start_response)
        File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/core/handlers/wsgi.py", line 189, in __call__
          response = self.get_response(request)
        File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/core/handlers/base.py", line 115, in get_response
          receivers =
dispatcher.send(signal=signals.got_request_exception)
        File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/dispatch/dispatcher.py", line 360, in send
          **named
        File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/dispatch/robustapply.py", line 47, in robustApply
          return receiver(*arguments, **named)
        File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/db/__init__.py", line 47, in _rollback_on_exception
          transaction.rollback_unless_managed()
        File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/db/transaction.py", line 145, in
rollback_unless_managed
          connection._rollback()
        File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/db/backends/dummy/base.py", line 13, in complain
          raise ImproperlyConfigured, "You haven't set the
DATABASE_ENGINE setting yet."



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to