#21409: Incorrect default BASE_DIR value in project template
------------------------------------+--------------------------------------
Reporter: dmamaev@… | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.6
Severity: Normal | Resolution: invalid
Keywords: settings, BASE_DIR | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
------------------------------------+--------------------------------------
Comment (by hjwp):
As of Python 3.4, __file__ will always return an absolute path. Could
that be an argument for adding the abspath as the innermost call, to make
sure that the behaviour in 3.4+ is the same as previous versions?
{{{
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
}}}
https://docs.python.org/3.4/whatsnew/3.4.html#other-language-changes
--
Ticket URL: <https://code.djangoproject.com/ticket/21409#comment:7>
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/076.5115dfdaedf360cc3b78b5d7a929b7d8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.