def add_keys(apps, schema_editor):
    """
    We can't import the Post model directly as it may be a newer
    version than this migration expects. We use the historical version.
    """
    Setting = apps.get_model('settings', 'Setting')
    key = ''
    try:
        key = 'PROJECT_DESCRIPTION'
        Setting.objects.get(key=key)
    except Exception:
        Setting.objects.create(title='توضیحات پروژه', key=key, value='',
            value_type='s', is_show=False, is_variable_in_home=False)
    try:
        key = 'APPSTORE_LINK'
        Setting.objects.get(key=key)
    except Exception:
        Setting.objects.create(title='لینک اپ استور', key=key, value='',
            value_type='s', is_show=False, is_variable_in_home=False)
    try:
        key = 'IOS_LINK'
        Setting.objects.get(key=key)
    except Exception:
        Setting.objects.create(title='لینک iOS', key=key, value='',
            value_type='s', is_show=False, is_variable_in_home=False)
    try:
        key = 'GOOGLE_PLAY_LINK'
        Setting.objects.get(key=key)
    except Exception:
        Setting.objects.create(title='لینک گوگل پلی', key=key, value='',
            value_type='s', is_show=False, is_variable_in_home=False)
    try:
        key = 'ANDROID_LINK'
        Setting.objects.get(key=key)
    except Exception:
        Setting.objects.create(title='لینک APK', key=key, value='',
            value_type='s', is_show=False, is_variable_in_home=False)
    try:
        key = 'APPLICATION_IMAGE'
        Setting.objects.get(key=key)
    except Exception:
        Setting.objects.create(title='عکس نرم افزار', key=key, value='',
            value_type='s', is_show=False, is_variable_in_home=False)
