The settings.py file¶

    Some settings, for example or MIDDLEWARE (MIDDLEWARE_CLASSES in olderversions of Django) are _addon-configured settings in Divio Cloud projects, managed by the AldrynAddons framework.

    This allows applications to configure themselves when they are installed; for example, if an addonrequires certain applications to be listed in , it will add them (this is takencare of in the addon’s file). All these are then loaded into thesettings.py by the line:

    If you declare a setting such as INSTALLED_APPS before, it may be overwritten by the addon system.

    If you declare it after aldrynaddons.settings.load(locals()), it will overwrite anyconfiguration performed by the addon system. In this case, your setting _will apply, but beaware that logic in the addon’s aldryn_config.py might operate based on a different value,with unpredictable results.

    Manually-configured settings¶

    Manually-configured settings, that are not required or handled by any other component, aremuch easier, and can simply be dropped directly into your .