15 lines
437 B
Python
15 lines
437 B
Python
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):
|
|
help = "Checks your configuration's compatibility with this version " + \
|
|
"of Django."
|
|
|
|
def handle_noargs(self, **options):
|
|
for message in check_compatibility():
|
|
warnings.warn(message)
|