django1/django/core/management/commands/check.py

15 lines
437 B
Python
Raw Normal View History

from __future__ import unicode_literals
import warnings
from django.core.checks.compatibility.base import check_compatibility
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
2013-06-14 21:44:45 +08:00
help = "Checks your configuration's compatibility with this version " + \
"of Django."
def handle_noargs(self, **options):
for message in check_compatibility():
warnings.warn(message)