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

15 lines
430 B
Python
Raw Normal View History

from __future__ import unicode_literals
import warnings
from django.core.compat_checks.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)