MAINTENANCE_MODE_STATE_FILE_PATH setting bug
paduszyk opened this issue · 2 comments
paduszyk commented
Python version
3.10
Django version
4.1
Package version
0.16.3.
Current behavior (bug description)
When MAINTENANCE_MODE_STATE_FILE_PATH
is defined using pathlib.Path
(as suggested by the default Django settings file), e.g.:
MAINTENANCE_MODE_STATE_FILE_PATH = BASE_DIR.parent / "maintenance_mode_state.txt"
AttributeError
is raised with message with message 'PosixPath' object has no attribute 'decode'.
Expected behavior
It would be nice to define the path using pathlib.Path
as well.
fabiocaccamo commented
@paduszyk nice catch, thank you!
fabiocaccamo commented
@paduszyk you can upgrade to 0.17.1
version.