If they have a virtual environment activated, then the problem is
probably either they haven't installed the requirements or they haven't
updated them in a while.
If they don't have a virtual environment actiivated, then they need to
activate it.
This code change attempts to distinguish between the two by looking for
VIRTUAL_ENV in the environment.
If you don't have your virtualenv activated, then manage.py sputters and
squawks and between muscle spasms of its right eye rants about
conspiracies involving django.forms which is unintelligible gibberish,
not helpful and not friendly to kitsune developers.
This fixes that by catching the ImportError and giving you a more
helpful hint.
This adds a patch call to manage.py. The problem is that various
Django-specific subcommands at some point import Jingo which eventually
results in a circular import. Adding the patch call here guarantees
that Jingo and all that stuff is imported before we import the things we
need to import to execute the subcommand.
- Translated the settings in log_settings.py to dictConfig.
- Moved logging settings to settings.py, where they can be overwritten
by local_settings.py.
- Removed log_settings.py, in favor of settings.py/local_settings.py.
- Remove LOG_LEVEL setting.
LOG_LEVEL is misleading, because overwriting it in local_settings.py
would not have the desired effect. Since the dict is built at import
time, local_settings.py would have no chance to modify it before the
dict was built.