django_开发报错

  1. 测试django celery时,把setting.py的DEBUG = Flase,出现css、js文件无法加载。
    解决办法:
    DEBUG = True
  2. 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

posted @ 2018-11-22 17:10  自动侠  阅读(2236)  评论(0编辑  收藏  举报