This PR changes the paths for logging files listed in gph/settings/dev.py from relative paths such as ./logs/django.log to paths constructed with os.path.join and the LOGS_DIR variable (as in base.py). The current version treats the . as the current working directory; this is usually fine in local development, when it's assumed that you'll be running ./manage.py whatever from the project root, but will break when that doesn't hold. (One example is when developing on PythonAnywhere; it's possible to set the working directory to the project root, but that's not the default.)
This PR changes the paths for logging files listed in
gph/settings/dev.py
from relative paths such as./logs/django.log
to paths constructed withos.path.join
and theLOGS_DIR
variable (as inbase.py
). The current version treats the.
as the current working directory; this is usually fine in local development, when it's assumed that you'll be running./manage.py whatever
from the project root, but will break when that doesn't hold. (One example is when developing on PythonAnywhere; it's possible to set the working directory to the project root, but that's not the default.)