Closed
Bug 1228333
Opened 10 years ago
Closed 8 years ago
Use django-environ's Path() helper to simplify paths in settings.py
Categories
(Tree Management :: Treeherder, defect, P3)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: ghickman)
References
Details
Attachments
(1 file)
django-environ (which we're already using for environment variables) has a Path class that simplifies generating relative paths for settings such as STATIC_ROOT:
https://github.com/joke2k/django-environ/blob/develop/README.rst
We can use this to replace our custom handling here:
https://github.com/mozilla/treeherder/blob/2d8bb0b32d10fc4c05c23e49df1fda6b8bc80c5d/treeherder/__init__.py#L9
Comment 2•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ghickman
Comment 3•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/801533290675ce752cbc8dbf0987bd7b74ce1275
Bug 1228333 - remove path helper in favour of os.path.join
| Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•