#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                    |
-------------------------------------+-------------------------------------
Changes (by carljm):

 * stage:  Unreviewed => Accepted


Comment:

 Generating an actual setting for this is a bad idea, IMO -- too unclear
 what effect it would have, too likely to become out of date or be edited
 wrongly, and too likely to be used in ways that would cause breakage if
 so.

 But I could see value in adding a simple comment like `# Generated by
 'django-admin.py startproject', Django 1.7.1`, on the general principle
 that it's good practice for automatic code generators to insert a
 "generated by" comment. That's clearly a "this file generated by", not a
 "this project runs with", so it's less likely to be incorrectly edited
 (and doesn't really matter that much if it is). There are definitely times
 I would have found this useful, just to get a rough idea of which settings
 I ought to check for possible updates needed.

 Accepting on that basis.

--
Ticket URL: <https://code.djangoproject.com/ticket/23899#comment:2>
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.04ed662770e584291ef447388a9581e0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to