Use django-environ's Path() helper to simplify paths in settings.py

NEW
Unassigned

Status

Tree Management
Treeherder
P3
normal
2 years ago
4 months ago

People

(Reporter: emorley, Unassigned)

Tracking

Details

(Reporter)

Description

2 years ago
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
(Reporter)

Updated

4 months ago
Duplicate of this bug: 1240491
You need to log in before you can comment on or make changes to this bug.