2013-06-14 09:39:02 +08:00
|
|
|
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."
|
2013-06-14 09:39:02 +08:00
|
|
|
|
|
|
|
def handle_noargs(self, **options):
|
|
|
|
for message in check_compatibility():
|
|
|
|
warnings.warn(message)
|