Oh, yeah, there was only place, but when I removed this code nothing changed.
I do not know about this import from django.utils.translation import ugettext_lazy as _ On 4 Сер, 17:59, Michael <newmani...@gmail.com> wrote: > On Tue, Aug 4, 2009 at 10:46 AM, Vitaly <hash...@gmail.com> wrote: > > > Hey there > > > For running our test script we are using standalone script. > > > Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) > > [GCC 4.3.3] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> from django.conf import settings, global_settings > > >>> from fg import settings as app_settings > > >>> settings.configure( > > ... default_settings = global_settings, > > ... INSTALLED_APP = app_settings.INSTALLED_APP > > ... ) > > Traceback (most recent call last): > > File "<stdin>", line 3, in <module> > > File "/usr/local/lib/python2.6/dist-packages/django/utils/ > > functional.py", line 269, in __getattr__ > > self._setup() > > File "/usr/local/lib/python2.6/dist-packages/django/conf/ > > __init__.py", line 38, in _setup > > raise ImportError("Settings cannot be imported, because > > environment variable %s is undefined." % ENVIRONMENT_VARIABLE) > > ImportError: Settings cannot be imported, because environment variable > > DJANGO_SETTINGS_MODULE is undefined. > > > Here's traceback with code I am using to make our concrete settings > > for testing. But, it was ignored and raises error. > > > What that can be? Thanks > > My guess is something in your fg.settings is importing a django model or > something else that requires Django to be configured, so when you try to > access the INSTALLED_APP setting it looks for DJANGO_SETTINGS_MODULE, which > isn't configured yet. What does your fg.settings look like? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---