#27861: 'BASE_DIR' calculation is not reliable
-----------------------------------------+------------------------
Reporter: Kimi-Arthur | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Hi,
The current BASE_DIR calculation is simple, just 2 levels up from the
current file, i.e. parent folder of current folder.
This is not reliable because it assumes the settings file will stay in
project_name folder, no deeper.
However, if the user has multiple settings (say for each environment), he
may be willing to create a sub package inside project_name and specify the
"DJANGO_SETTINGS_MODULE" when running the server. This will be a problem
as the BASE_DIR is actually the project_name dir instead of its parent.
--
Ticket URL: <https://code.djangoproject.com/ticket/27861>
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/054.f40e47e344f77ff35bebe838336bed0e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.