I tried following code

from django.conf import settings

...


a = setting.MY_OWN_VARIABLE=2

I get error

'function' object has no attribute 'MY_OWN_VARIABLE'

when I

print settings

it says its function object - instead of LazySettings object. I tried even

from django.conf import settings as something_that_cannot_make_collision

but result is the same.

Any idea why and how to fix?

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