galacticpuzzlehunt / gph-site

Django app for running a puzzlehunt (open-source version)
MIT License
62 stars 31 forks source link

FIX: fix logging path for dev #39

Closed madjaqk closed 1 year ago

madjaqk commented 1 year ago

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.)