Unknown team: misconduct

I am using Django 1.5.1, and according to django, documentation cleanup is deprecated in this version of django, and cleanup should be used. When I try to use cleanup, it indicates an unknown command. And when I type djando-admin.py help . I don't get it listed in the commands, instead I get cleaned up. And when using django-admin.py cleanup, I get the following error:

Incorrect Configured: The installation of USE_I18N was requested, but the settings were not configured. You must either define the DJANGO_SETTINGS_MODULE environment variable or call settings.configure () before accessing the settings.

Any idea that triggers this.

+4
source share
1 answer

You should always use manage.py, and not django-admin.pyrun any commands that depend on an existing project, as DJANGO_SETTINGS_MODULE is set for you.

+5
source

All Articles