#23899: A new field/doc note in the settings.py to denote django version
-------------------------------------+-------------------------------------
     Reporter:  atmb4u               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Core (Other)         |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  settings.py, django  |             Triage Stage:  Accepted
  version                            |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  1                    |
-------------------------------------+-------------------------------------

Comment (by freakboy3742):

 This would also be useful for upgrade checks. At present, when we do
 version change checks (e.g., checks related to TEST_RUNNER) we have to
 guess whether the project is "1.5 and has been upgraded" or "1.6 with a
 specific collection of settings". There are tickets reporting false
 positives related to these checks, which is to be expected, because things
 like "User has TEMPLATE_DIRS set" aren't a reliable way to check that
 you're running a particular Django version.

 Having a setting (or, as Carl suggests, a "meta" setting that is actually
 a comment) that represents "This project configuration is known to be
 correct for version X" would be very helpful for this purpose. The key
 thing here is that it isn't just a "Generated on v1.N" setting, because
 you can update the settings over time and know that the settings file is
 "good" for v1.(N+1). Being easily machine parseable is also important.

--
Ticket URL: <https://code.djangoproject.com/ticket/23899#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.379588ac795f06cf2c2a4c7ac4e9d250%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to