django_开发报错
- 测试django celery时,把setting.py的DEBUG = Flase,出现css、js文件无法加载。
解决办法:
DEBUG = True - ValueError: MySQL backend does not support timezone-aware datetimes when USE_TZ is False.
解决办法:
USE_TZ = True
3.UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
解决办法:
USE_TZ = Flase