Seems no :(
I tried to manually specify correct path
os.environ['DJANGO_SETTINGS_MODULE'] = 'db_settings.settings'
but have same issue :(

(NOTE, i didn't create it with startpoject command, I just cloned project
from repo. May it help to understand the issue?)

On Tue, Feb 3, 2009 at 8:59 PM, Oleg Oltar <[email protected]> wrote:

> Why it worked before I tried to change settings.py? Why actually site
> works?
> Maybe something is in my tests?
>
> Btw, my code organized this way:
>
> /proj
>    urls.py
>    settings
>   ./app
>       tests.py
>       urls.py
>
>
> As I changed the project name I also hacked the tests file so now it
> contains following:
> import os
> import re
>
>
>
> os.environ['PYTHNONPATH'] = '$PYTHONPATH:$PWD'
> os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'  # Is this correct?
>
>
> I presume that the second line is incorrect. Where it looks for the
> settings?
>
> On Tue, Feb 3, 2009 at 7:08 PM, Steve Holden <[email protected]> wrote:
>
>>
>> Oleg Oltar wrote:
>> [...]
>> >
>> >     sub_match = pattern.resolve(new_path)
>> >   File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py",
>> > line 181, in resolve
>> >     sub_match = pattern.resolve(new_path)
>> >   File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py",
>> > line 181, in resolve
>> >     sub_match = pattern.resolve(new_path)
>> >   File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py",
>> > line 179, in resolve
>> >     for pattern in self.urlconf_module.urlpatterns:
>> > RuntimeError: maximum recursion depth exceeded
>> >
>> > (I use: beryl:db_settings oleg$ nosetests --cover-package=loginreg
>> > --with-coverage    to run tests)
>> >
>> >
>> >
>> > Could anyone suggest why I am getting it?
>> >
>> Is something doing a 301 redirection to itself, possibly?
>>
>> regards
>>  Steve
>> --
>> Steve Holden        +1 571 484 6266   +1 800 494 3119
>> Holden Web LLC              http://www.holdenweb.com/
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to