Decouple provides a solution that doesn't look like a workaround: config('DEBUG', cast=bool). Install. pip install python-decouple. Usage. On your settings.py.
確定! 回上一頁