from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
from os import path


class Command(BaseCommand):
    help = "Populates data"

    def handle(self, *args, **options):
        fixture_path = path.join(path.dirname(
            path.dirname(
                path.dirname(
                    path.abspath(__file__)
                )
            )
        ), "fixtures/")
        settings.FIXTURE_DIRS = (fixture_path,)
        call_command("loaddata", "country", verbosity=1)

[((19, 8, 19, 56), 'django.core.management.call_command', 'call_command', (), '', False, 'from django.core.management import call_command\n'), ((14, 20, 14, 42), 'os.path.abspath', 'path.abspath', ({(14, 33, 14, 41): '__file__'}, {}), '(__file__)', False, 'from os import path\n')]