On Tue, Sep 8, 2009 at 5:55 PM, Masklinn<[email protected]> wrote:
>
> On 8 Sep 2009, at 14:00 , Maksymus007 wrote:
> I tried following code
>>
>> from django.conf import settings
>>
>> ...
>>
>>
>> a = setting.MY_OWN_VARIABLE=2
> You probably shouldn't set settings variables at runtime. And by
> "probably" I mean "really". Use getattr instead if you need "default
> value in case the setting isn't defined".
>

heh, that was just a copypasta from source.
Real problem was simple - i had a view named settings(request) which
made a collision.

--~--~---------~--~----~------------~-------~--~----~
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