[google-appengine] Re: You haven't set the DATABASE_ENGINE setting yet
Not sure which thread this is the tail of, but it seems obvious to me that you haven't set the DATABASE_ENGINE. Try eding your settings.py and changing the line to: DATABASE_ENGINE = "sqllite3" Sorry if I haven't understood your problem correctly. Cheers Greg. On Apr 29, 9:41 am, fedex1 wrote: > The settings.py file is: > ... > DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', > 'mysql', 'sqlite3' or 'ado_mssql'. > ... > 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.
[google-appengine] Re: You haven't set the DATABASE_ENGINE setting yet
Hi Greg and Everyone, Do you happen to know where the documentation on this is. The odd thing is the code works fine with the DATABASE_ENGINE set to '' 99% of the time. It's only a few times that it fails. I suspect it's a write failure and I simply have to perform a retest, but I don't see the recommended solution for this. Also I tried what you said sqlite3 But the error now is: : Error loading sqlite3 module: No module named pysqlite2 Traceback (most recent call last): File "/base/data/home/apps/race-reviews/1.341587830625416005/ django_bootstrap.py", line 70, in main() File "/base/data/home/apps/race-reviews/1.341587830625416005/ 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 184, in __call__ self.load_middleware() File "/base/python_runtime/python_lib/versions/third_party/ django-0.96/django/core/handlers/base.py", line 29, in load_middleware mod = __import__(mw_module, {}, {}, ['']) File "/base/python_runtime/python_lib/versions/third_party/ django-0.96/django/contrib/sessions/middleware.py", line 2, in from django.contrib.sessions.models import Session File "/base/python_runtime/python_lib/versions/third_party/ django-0.96/django/contrib/sessions/models.py", line 3, in from django.db import models File "/base/python_runtime/python_lib/versions/third_party/ django-0.96/django/db/__init__.py", line 11, in backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, {}, {}, ['']) File "/base/python_runtime/python_lib/versions/third_party/ django-0.96/django/db/backends/sqlite3/base.py", line 18, in raise ImproperlyConfigured, "Error loading %s module: %s" % (module, e) : Error loading sqlite3 module: No module named pysqlite2 Thanks, Ralph On Apr 28, 6:38 pm, Greg wrote: > Not sure which thread this is the tail of, but it seems obvious to me > that you haven't set theDATABASE_ENGINE. Try eding your settings.py > and changing the line to: > > DATABASE_ENGINE= "sqllite3" > > Sorry if I haven't understood your problem correctly. > > Cheers > Greg. > > On Apr 29, 9:41 am,fedex1 wrote: > > > The settings.py file is: > > ... > >DATABASE_ENGINE= '' # 'postgresql_psycopg2', 'postgresql', > >'mysql', 'sqlite3' or 'ado_mssql'. > > ... > > django-0.96/django/db/backends/dummy/base.py", line 13, in complain > > raise ImproperlyConfigured, "You haven't set > > theDATABASE_ENGINEsetting 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 > athttp://groups.google.com/group/google-appengine?hl=en. -- 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.
[google-appengine] Re: You haven't set the DATABASE_ENGINE setting yet
Hi Howard, We need much more information to be of any assistance. Where are you getting this error? Using Java, or Python? Please post the complete stacktrace, as well as any relevant code and configuration files. -Nick Johnson On Wed, May 6, 2009 at 4:01 AM, Howard wrote: > > I suddenly started to get this error... but never changed this > setting. This error is critical and causing my entire site to crash. > The DATABASE_ENGINE was set to 'dummy'. I have also tried to set it > to 'appengine', neither seems to be working. > --~--~-~--~~~---~--~~ 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-appengine@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 -~--~~~~--~~--~--~---
[google-appengine] Re: You haven't set the DATABASE_ENGINE setting yet
I am getting the exact the same error, under python runtime when I check the log , I got pages of such errors, I know nothing about this , seeming that if I set DEBUG = TRUE will decrease such errors but I am not sure of this stack trace: : You haven't set the DATABASE_ENGINE setting yet. Traceback (most recent call last): File "/base/data/home/apps/bbstop10/1.333251275883085776/ django_bootstrap.py", line 71, in main() File "/base/data/home/apps/bbstop10/1.333251275883085776/ django_bootstrap.py", line 68, in main util.run_wsgi_app(application) File "/base/python_lib/versions/1/google/appengine/ext/webapp/ util.py", line 76, in run_wsgi_app result = application(env, _start_response) File "/base/python_lib/versions/1/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/base/python_lib/versions/1/django/core/handlers/base.py", line 115, in get_response receivers = dispatcher.send(signal=signals.got_request_exception) File "/base/python_lib/versions/1/django/dispatch/dispatcher.py", line 360, in send **named File "/base/python_lib/versions/1/django/dispatch/robustapply.py", line 47, in robustApply return receiver(*arguments, **named) File "/base/python_lib/versions/1/django/db/__init__.py", line 47, in _rollback_on_exception transaction.rollback_unless_managed() File "/base/python_lib/versions/1/django/db/transaction.py", line 145, in rollback_unless_managed connection._rollback() File "/base/python_lib/versions/1/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-appengine@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 -~--~~~~--~~--~--~---
[google-appengine] Re: You haven't set the DATABASE_ENGINE setting yet
It is a very weird error, you know , It just don't happen all the time, but if I trigger /service/bbs/ (a django gateway for PYAMF) and the service is not completed, I got my whole site down and all errors were about DATABASE_ENGINE setting etc, and after a while it recovers automatically If you know the problem ,please do let me know, thanks # /service/bbs/ 500 187ms 33cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe) See details 202.120.40.90 - - [06/May/2009:09:01:49 -0700] "POST /service/bbs/ HTTP/1.1" 500 0 "http://bbstop10.appspot.com/page/BbsRender.swf"; "Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.0.10) Gecko/ 2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe)" # E 05-06 09:01AM 49.359 : You haven't set the DATABASE_ENGINE setting yet. Traceback (most recent call last): File "/base/data/home/apps/bbstop10/1.333251275883085776/ django_bootstrap.py", line 71, in main() File "/base/data/home/apps/bbstop10/1.333251275883085776/ django_bootstrap.py", line 68, in main util.run_wsgi_app(application) File "/base/python_lib/versions/1/google/appengine/ext/webapp/ util.py", line 76, in run_wsgi_app result = application(env, _start_response) File "/base/python_lib/versions/1/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/base/python_lib/versions/1/django/core/handlers/base.py", line 115, in get_response receivers = dispatcher.send(signal=signals.got_request_exception) File "/base/python_lib/versions/1/django/dispatch/dispatcher.py", line 360, in send **named File "/base/python_lib/versions/1/django/dispatch/robustapply.py", line 47, in robustApply return receiver(*arguments, **named) File "/base/python_lib/versions/1/django/db/__init__.py", line 47, in _rollback_on_exception transaction.rollback_unless_managed() File "/base/python_lib/versions/1/django/db/transaction.py", line 145, in rollback_unless_managed connection._rollback() File "/base/python_lib/versions/1/django/db/backends/dummy/base.py", line 13, in complain raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet." # /list/ 500 30ms 44cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe) See details 202.120.40.90 - - [06/May/2009:09:03:36 -0700] "GET /list/ HTTP/1.1" 500 0 "http://bbstop10.appspot.com/? origin=103&xn_sig_in_iframe=1&xn_sig_method=get&xn_sig_time=1241625811291&xn_sig_added=1&xn_sig_user=228993921&xn_sig_session_key=2.7e653581969961021b70c96921e5c7ac. 3600.1241632800-228993921&xn_sig_expires=0&xn_sig_api_key=fbd740bc879045e6938f023225c1c8b2&xn_sig_app_id=29481" "Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.0.10) Gecko/ 2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe)" # E 05-06 09:03AM 36.186 : You haven't set the DATABASE_ENGINE setting yet. Traceback (most recent call last): File "/base/data/home/apps/bbstop10/1.333251275883085776/ django_bootstrap.py", line 71, in main() File "/base/data/home/apps/bbstop10/1.333251275883085776/ django_bootstrap.py", line 68, in main util.run_wsgi_app(application) File "/base/python_lib/versions/1/google/appengine/ext/webapp/ util.py", line 76, in run_wsgi_app result = application(env, _start_response) File "/base/python_lib/versions/1/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/base/python_lib/versions/1/django/core/handlers/base.py", line 115, in get_response receivers = dispatcher.send(signal=signals.got_request_exception) File "/base/python_lib/versions/1/django/dispatch/dispatcher.py", line 360, in send **named File "/base/python_lib/versions/1/django/dispatch/robustapply.py", line 47, in robustApply return receiver(*arguments, **named) File "/base/python_lib/versions/1/django/db/__init__.py", line 47, in _rollback_on_exception transaction.rollback_unless_managed() File "/base/python_lib/versions/1/django/db/transaction.py", line 145, in rollback_unless_managed connection._rollback() File "/base/python_lib/versions/1/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-appengine@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 -~--~~~~--~~--~--~---
[google-appengine] Re: You haven't set the DATABASE_ENGINE setting yet
just for the record, DATABASE_ENGINE is a django thing, not an app engine thing. (that's as much as i can help, since i don't really know anything about django.) --~--~-~--~~~---~--~~ 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-appengine@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 -~--~~~~--~~--~--~---