#18858: add ROOT_PATH to settings.py template
--------------------------------------------+--------------------
     Reporter:  revolunet                   |      Owner:  nobody
         Type:  Cleanup/optimization        |     Status:  new
    Component:  Core (Management commands)  |    Version:  1.4
     Severity:  Normal                      |   Keywords:
 Triage Stage:  Unreviewed                  |  Has patch:  0
Easy pickings:  0                           |      UI/UX:  0
--------------------------------------------+--------------------
 Hi,

 Looks like everybody always add this on top of their settings.py (me too)
 :

 {{{
 import os
 ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
 }}}

 I'm wondering why this couldnt be present in the project_template
 settings.py

 I know this is not a real 'setting', rather python code, but adding this
 would simplify things a bit for beginners and prevent hard coded paths
 which are usually a bad practice.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18858>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to