def validate_django_compatible_with_python():
python_version = sys.version[:<NUM_LIT:5>]<EOL>django_version = django.get_version()<EOL>if sys.version_info == (<NUM_LIT:2>, <NUM_LIT:7>) and django_version >= "<STR_LIT:2>":<EOL><INDENT>click.BadArgumentUsage("<STR_LIT>".format(python_version))<EOL><DEDENT>
Verify Django 1.11 is present if Python 2.7 is active

Installation of pinax-cli requires the correct version of Django for
the active Python version. If the developer subsequently changes
the Python version the installed Django may no longer be compatible.