Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:55:31+00:00 2026-06-08T10:55:31+00:00

The django docs clearly states You shouldn’t alter settings in your applications at runtime.

  • 0

The django docs clearly states

You shouldn’t alter settings in your applications at runtime.

Here’s the link to that statement

My question is, why is this so? I want to add applications dynamically at runtime, and add databases at runtime, both of which involve editing the settings. Can someone explain why settings are not to be edited at runtime and if exceptions exist, which settings they are and why they are exceptional? I’m not so much interested in how to achieve my goal, but in the reason for why settings shouldn’t be altered.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:55:32+00:00Added an answer on June 8, 2026 at 10:55 am

    Most settings will not be re-read if you change them at runtime. So Django will not recognise the changes you make.

    This is due to the fact that Django is just normal Python code. It isn’t like a server that is monitoring your code – it is just part of your code.

    In some cases, parts of Django code might respond to changes in settings, because they might do ‘settings.DEFAULT_FROM_EMAIL’ every time mail is sent, for example.

    But if Django processes the setting in any way, like it has to do for INSTALLED_APPS, it isn’t going to notice you changed something and re-do the processing.

    Which settings are safe? Well, the docs are saying “none are safe”, because it might change in the future. Django might save a copy of any setting for some reason, or do some processing.

    Changing INSTALLED_APPS could never be made to work, because it alters which modules are imported. There is simply no way that Django could work around the way that Python works at this level – it would need to be able to ‘unimport’ modules, which is basically impossible (the only way is to restart the process), and there are other problems associated with cross-app links.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Django docs say this on the subject: Note also that Django stores signal
Django newbie here stumbling my way around the docs. I'm trying to create a
Django docs say that Context object is a stack: from django.template import Context c
From Django docs : ...the database is not refreshed between doctests, so if your
I'm using DjangoCMS with app integration, like documented here: http://readthedocs.org/docs/django-cms/en/latest/extending_cms/app_integration.html This, however, means that
In django docs, it is written that they can always store the datetime objects
Am on django 1.3., python 2.6 In the django docs here https://docs.djangoproject.com/en/1.3/topics/logging/#django-request it says
While I am studying the new django docs on class-based views, I notice this
I try to use assignment_tag from django docs: https://docs.djangoproject.com/en/1.4/howto/custom-template-tags/#howto-custom-template-tags-simple-tags Test project: mysite/ manage.py polls/
I'm trying to set up the simple syndication example from the Django docs, in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.