Changes between Version 41 and Version 42 of RemovingTheMagic


Ignore:
Timestamp:
Jan 17, 2006, 8:24:57 AM (19 years ago)
Author:
hugo
Comment:

added note about the settings moving into an instance from a module

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v41 v42  
    435435 * New: {{{django.contrib.admin.urls}}}
    436436
     437== Moved settings into an instance ==
     438
     439'''Status: Done'''
     440
     441To 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
     443Wrappers 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
    437448== Database table-name changes ==
    438449
Back to Top