from __future__ import absolute_import, unicode_literals
import os
from celery import task


@task
def check():
    os.path.abspath("..")
    from site.web.models import InstagramAccount
    accounts = InstagramAccount.objects.all()
    usernames = [account.username for account in accounts]
    print(usernames)

    # instagram_accounts = InstagramAccount.objects.get()
    # for instagram_account in instagram_accounts:
    #     print(instagram_account.is_active)


d0697adca7217ca4d51f06ed1e029c39a94b6565
<mask token>

<mask token>


@task
def check():
    os.path.abspath('..')
    from site.web.models import InstagramAccount
    accounts = InstagramAccount.objects.all()
    usernames = [account.username for account in accounts]
    print(usernames)

from __future__ import absolute_import, unicode_literals
import os
from celery import task


@task
def check():
    os.path.abspath('..')
    from site.web.models import InstagramAccount
    accounts = InstagramAccount.objects.all()
    usernames = [account.username for account in accounts]
    print(usernames)

from __future__ import absolute_import, unicode_literals
import os
from celery import task


@task
def check():
    os.path.abspath("..")
    from site.web.models import InstagramAccount
    accounts = InstagramAccount.objects.all()
    usernames = [account.username for account in accounts]
    print(usernames)

    # instagram_accounts = InstagramAccount.objects.get()
    # for instagram_account in instagram_accounts:
    #     print(instagram_account.is_active)

