Hi! I'm trying to use Django models from a python script and I'm having some settings problem. Even though I called settings.configure, it keeps ordering for some other setting parameter. The error is listed below. Any idea?
$ python >>> import recorder >>> import recorder.settings >>> from django.conf import settings >>> settings.configure(recorder.settings, DEBUG=True) >>> import recorder.six_core Traceback (most recent call last): File "<stdin>", line 1, in ? File "recorder/six_core/__init__.py", line 1, in ? from recorder.six_core.models import Server_Status File "/usr/six/recorder/six_core/models.py", line 1, in ? from django.db import models File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 30, in ? connection = backend.DatabaseWrapper(**settings.DATABASE_OPTIONS) File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 32, in __getattr__ return getattr(self._target, name) File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 133, in __getattr__ return getattr(self.default_settings, name) AttributeError: 'module' object has no attribute 'DATABASE_OPTIONS' Tks, Tkm --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---