It should be, but not :)
The matter is that I changed some code

from django.conf import settings
from fg import settings as app_settings


settings.configure(app_settings, **{'DATABASE_NAME': ':memory:',
                                            'DATABASE_ENGINE':
'sqlite3',
                                            'DATABASE_HOST': '',
                                            'DATABASE_OPTIONS': '',
                                            'DATABASE_PASSWORD': '',
                                            'DATABASE_PORT': '',
                                            'DATABASE_USER': '',
                                            'TIME_ZONE': 'GMT',
                                            'DEBUG': True,
 
'URL_VALIDATOR_USER_AGENT': ''})
# Reload DB
module
from django import
db
reload
(db)

# Install
Models
from django.core.management import call_command

call_command("syncdb")

This code raises another error

  File "/usr/local/lib/python2.6/dist-packages/django/utils/
functional.py", line 273, in __getattr__
    return getattr(self._wrapped, name)
  File "/usr/local/lib/python2.6/dist-packages/django/conf/
__init__.py", line 130, in __getattr__
    return getattr(self.default_settings, name)

maximum recursion depth exceeded in cmp
(<type 'exceptions.RuntimeError'>, RuntimeError('maximum recursion
depth exceeded',), <traceback object at 0x8a9c054>)

Vitaly

On 4 Сер, 18:45, Michael <newmani...@gmail.com> wrote:
> > On Tue, Aug 4, 2009 at 11:29 AM, Vitaly <hash...@gmail.com> wrote:
> > I did cut of our settings
>
> > Here it ishttp://dpaste.com/75091/
>
> > Using your method I got no error but app_settings and INSTALLED_APPS
> > were cleaned up and contains nothing. Strange.
>
> > Thanks
> > Vitaly
>
> Why not just:
>
> from django.conf import settings
>
> from fg import settings as my_settings
>
> settings.configure(my_settings)
>
> Could make your life easier.
>
> Hope that helps,
>
> Michael
--~--~---------~--~----~------------~-------~--~----~
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 
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