| 437 | == Moved settings into an instance == |
| 438 | |
| 439 | '''Status: Done''' |
| 440 | |
| 441 | To make it easier to switch settings in situations where you would need multiple different settings - for example when trying to use multiple django projects within one server context or when using Django apps within a bigger WSGI scenario - the settings were moved out of a dedicated module {{{django.conf.settings}}} into an instance in the {{{django.conf}}} module. So now you need to import the {{{settings}}} object and reference settings as attributes of that instance. |
| 442 | |
| 443 | Wrappers around the Django machinery can make use of this by exchanging the settings instance with a proxy instance that delegates attribute access to a per-thread or per-location global. |
| 444 | |
| 445 | * Old: {{{from django.conf.settings import LANGUAGE_CODE}}} |
| 446 | * New: {{{from django.conf import settings}}} |
| 447 | |