# Path: app/core/management/commands/_private.py
# class CommandHelper:
#     def __init__(self, command):
#         self.base_dir = settings.BASE_DIR
#         self.command = command
#         self.string_queue = []
# 
#     def add_to_print_queue(self, s):
#         self.string_queue.append(s)
# 
#     def print_queue(self):
#         self.command.stdout.write('')
#         self.command.stdout.write('>>> DJANGO-SKELETON:')
#         for item in self.string_queue:
#             self.command.stdout.write(str(item))
#         self.command.stdout.write('')
# 
#     def load_fixtures(self):
#         management.call_command('loaddata', 'debug_core.json')
#         management.call_command('loaddata', 'debug_account.json')
#         management.call_command('loaddata', 'debug_blog.json')


from django.conf import settings
from django.core import management
from django.core.management.base import NoArgsCommand
from ._private import CommandHelper



class Command(NoArgsCommand):
    help = "Check application's environment."

    def __init__(self):
        super(Command, self).__init__()
        self.base_dir = settings.BASE_DIR
        self.helper = CommandHelper(self)

    def handle_noargs(self, **options):
        # NOT DEBUG: Collect static files

# Path: app/core/management/commands/_private.py
# class CommandHelper:
#     def __init__(self, command):
#         self.base_dir = settings.BASE_DIR
#         self.command = command
#         self.string_queue = []
# 
#     def add_to_print_queue(self, s):
#         self.string_queue.append(s)
# 
#     def print_queue(self):
#         self.command.stdout.write('')
#         self.command.stdout.write('>>> DJANGO-SKELETON:')
#         for item in self.string_queue:
#             self.command.stdout.write(str(item))
#         self.command.stdout.write('')
# 
#     def load_fixtures(self):
#         management.call_command('loaddata', 'debug_core.json')
#         management.call_command('loaddata', 'debug_account.json')
#         management.call_command('loaddata', 'debug_blog.json')


# Path: app/core/management/commands/check.py
from django.conf import settings
from django.core import management
from django.core.management.base import NoArgsCommand
from ._private import CommandHelper




class Command(NoArgsCommand):
    help = "Check application's environment."

    def __init__(self):
        super(Command, self).__init__()
        self.base_dir = settings.BASE_DIR
        self.helper = CommandHelper(self)

    def handle_noargs(self, **options):
        # NOT DEBUG: Collect static files

        if not settings.DEBUG: