• MySQL Strict Mode is not set for database connection ‘default’

    Answered

    (mysql.W002) MySQL Strict Mode is not set for database connection ‘default’

     

    Silver Member Asked on June 12, 2018 in Python.
    Add Comment
  • 2 Answer(s)
    Best answer

    Django-MySQL runs some extra checks as part of Django’s check framework to ensure your configuration for Django + MySQL is optimal. If triggered, the checks give a brief message, and a link here for documentation on how to fix it.

    Note

    A reminder: as per the Django docs, you can silence individual checks in your settings. For example, if you determine django_mysql.W002 doesn’t require your attention, add the following to settings.py:

    
    SILENCED_SYSTEM_CHECKS = [
    
    'django_mysql.W002',
    
    ]
    
    
    Silver Member Answered on June 12, 2018.
    Add Comment
    
    SILENCED_SYSTEM_CHECKS = [
    
    'django_mysql.W002',
    
    ]
    
    
    Silver Member Answered on June 12, 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.