What other applications/extensions are you using? I remember a similar 
problem using debug-toolbar. I had to upgrade it to a newer revision (can't 
remember if the necessary changes were already contained in a release).

On Tuesday, August 7, 2012 10:24:06 AM UTC-4, dokondr wrote:
>
> Hi all!
> I am trying to run ConceptNet (
> http://csc.media.mit.edu/docs/conceptnet/install.html) originally 
> deployed on Django 1.3.
> When running this app with Django1.4 on Mac OS X 10.6.8. (Snow Leopard) I 
> get:
>
> "ImproperlyConfigured: settings.DATABASES is improperly configured. Please 
> supply the ENGINE value. Check settings documentation for more details."
>
> (Please see detailed log at the end of this message.)
>
> To solve this I tried to create new config for 1.4 and run with SQLite 
> database (ready to use) in my work directory.  I have changed the old 
> contents of 'db_config.py'
>
> DB_ENGINE = "sqlite3"
> DB_NAME = "ConceptNet.db"
> DB_HOST = ""
> DB_PORT = ""
> DB_USER = ""
> DB_PASSWORD = ""
> DB_SCHEMAS = ""
>
> to new format for 1.4 in the same file ('db_config.py") :
>
> DATABASES = {
>    'default': {
>         'ENGINE': 'django.db.backends.sqlite3', # Add 
> 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3'\
>  or 'oracle'.
>         'NAME': 'ConceptNet.db',                      # Or path to 
> database file if using sqlite3.
>         'USER': '',                      # Not used with sqlite3.
>         'PASSWORD': '',                  # Not used with sqlite3.
> 'HOST': '',                      # Set to empty string for localhost. Not 
> used with sqlite3.
> 'PORT': '',                      # Set to empty string for default. Not 
> used with sqlite3.
>     }
> }
>
> This did not help.
> I also renamed 'db_config.py' to 'settings.py' in the same working 
> directory. I am still getting the same error.
> What shall I do to make Django 1.4 find my configuration?
>
> Thanks!
> Dmitri
>
> --------- Detailed dump -------
>
> -bash: ipyhton: command not found
> >ipython
> Leopard libedit detected.
> Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.10 -- An enhanced Interactive Python.
> ?         -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help      -> Python's own help system.
> object?   -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: from conceptnet.models import Concept
> /Library/Python/2.6/site-packages/django/conf/__init__.py:75: 
> DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use 
> STATIC_URL instead.
>   "use STATIC_URL instead.", DeprecationWarning)
> /Library/Python/2.6/site-packages/matplotlib-0.91.1-py2.6-macosx-10.6-universal.egg/pytz/tzinfo.py:5:
>  
> DeprecationWarning: the sets module is deprecated
>   from sets import Set
>
> In [2]: dog = Concept.get('dog', 'en')
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (47, 0))
>
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (17, 0))
>
> ---------------------------------------------------------------------------
> ImproperlyConfigured                      Traceback (most recent call last)
>
> /Users/user/wks/Macys/ConceptNet/ConceptNet-sqlite/<ipython console> in 
> <module>()
>
> /Library/Python/2.6/site-packages/conceptnet/models.pyc in get(cls, text, 
> language, auto_create)
>     611         """
>     612         if not isinstance(language, Language):
> --> 613             language = Language.get(language)
>     614         surface = SurfaceForm.get(text, language, auto_create)
>     615         if surface is None:
>
> /Library/Python/2.6/site-packages/conceptnet/corpus/models.pyc in get(id)
>     103         """
>     104         if isinstance(id,Language): return id
> --> 105         return get_lang(id)
>     106 
>     107     @property
>
> /Library/Python/2.6/site-packages/django/utils/functional.pyc in 
> wrapper(*args)
>      25         if mem_args in cache:
>      26             return cache[mem_args]
> ---> 27         result = func(*args)
>      28         cache[mem_args] = result
>      29         return result
>
> /Library/Python/2.6/site-packages/conceptnet/corpus/models.pyc in 
> get_lang(lang_code)
>      65     it doesn't have to be looked up again.
>      66     """
> ---> 67     return Language.objects.get(id=lang_code)
>      68 get_lang = memoize(get_lang, cached_langs, 1)
>      69 
>
> /Library/Python/2.6/site-packages/django/db/models/manager.pyc in 
> get(self, *args, **kwargs)
>     129 
>     130     def get(self, *args, **kwargs):
> --> 131         return self.get_query_set().get(*args, **kwargs)
>     132 
>     133     def get_or_create(self, **kwargs):
>
> /Library/Python/2.6/site-packages/django/db/models/query.pyc in get(self, 
> *args, **kwargs)
>     359         if self.query.can_filter():
>     360             clone = clone.order_by()
> --> 361         num = len(clone)
>     362         if num == 1:
>     363             return clone._result_cache[0]
>
> /Library/Python/2.6/site-packages/django/db/models/query.pyc in 
> __len__(self)
>      83                 self._result_cache = list(self._iter)
>      84             else:
> ---> 85                 self._result_cache = list(self.iterator())
>      86         elif self._iter:
>      87             self._result_cache.extend(self._iter)
>
> /Library/Python/2.6/site-packages/django/db/models/query.pyc in 
> iterator(self)
>     289             klass_info = get_klass_info(model, max_depth=max_depth,
>     290                                         requested=requested, 
> only_load=only_load)
> --> 291         for row in compiler.results_iter():
>     292             if fill_cache:
>     293                 obj, _ = get_cached_row(row, index_start, db, 
> klass_info,
>
> /Library/Python/2.6/site-packages/django/db/models/sql/compiler.pyc in 
> results_iter(self)
>     761         if self.query.select_for_update and 
> transaction.is_managed(self.using):
>     762             transaction.set_dirty(self.using)
> --> 763         for rows in self.execute_sql(MULTI):
>     764             for row in rows:
>     765                 if resolve_columns:
>
> /Library/Python/2.6/site-packages/django/db/models/sql/compiler.pyc in 
> execute_sql(self, result_type)
>     806         """
>     807         try:
> --> 808             sql, params = self.as_sql()
>     809             if not sql:
>     810                 raise EmptyResultSet
>
> /Library/Python/2.6/site-packages/django/db/models/sql/compiler.pyc in 
> as_sql(self, with_limits, with_col_aliases)
>      69         # another run of it.
>
>      70         self.refcounts_before = self.query.alias_refcount.copy()
> ---> 71         out_cols = self.get_columns(with_col_aliases)
>      72         ordering, ordering_group_by = self.get_ordering()
>      73 
>
> /Library/Python/2.6/site-packages/django/db/models/sql/compiler.pyc in 
> get_columns(self, with_aliases)
>     216         elif self.query.default_cols:
>     217             cols, new_aliases = 
> self.get_default_columns(with_aliases,
> --> 218                     col_aliases)
>     219             result.extend(cols)
>     220             aliases.update(new_aliases)
>
> /Library/Python/2.6/site-packages/django/db/models/sql/compiler.pyc in 
> get_default_columns(self, with_aliases, col_aliases, start_alias, opts, 
> as_pairs, local_only)
>     304                 aliases.add(c_alias)
>     305             else:
> --> 306                 r = '%s.%s' % (qn(alias), qn2(field.column))
>     307                 result.append(r)
>     308                 aliases.add(r)
>
> /Library/Python/2.6/site-packages/django/db/models/sql/compiler.pyc in 
> quote_name_unless_alias(self, name)
>      47             self.quote_cache[name] = name
>      48             return name
> ---> 49         r = self.connection.ops.quote_name(name)
>      50         self.quote_cache[name] = r
>      51         return r
>
> /Library/Python/2.6/site-packages/django/db/backends/dummy/base.pyc in 
> complain(*args, **kwargs)
>      13 
>      14 def complain(*args, **kwargs):
> ---> 15     raise ImproperlyConfigured("settings.DATABASES is improperly 
> configured. "
>      16                                "Please supply the ENGINE value. 
> Check "
>      17                                "settings documentation for more 
> details.")
>
> ImproperlyConfigured: settings.DATABASES is improperly configured. Please 
> supply the ENGINE value. Check settings documentation for more details.
>
> In [3]: import django; print(django.get_version())
> 1.4.1
>
> In [4]: from distutils.sysconfig import get_python_lib; print 
> get_python_lib()
> /Library/Python/2.6/site-packages
>
> In [5]: 
>   
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/WxUzoSMU79wJ.
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