import os, django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'artaghadir.settings')
django.setup()

from apps.core.models import SiteSettings

site = SiteSettings.get()

# Fill contact texts if empty
if not site.contact_page_fa:
    site.contact_page_fa = 'برای همکاری، مشاوره یا کسب اطلاعات بیشتر از طریق راه‌های ارتباطی زیر با ما در تماس باشید.'
if not site.contact_page_en:
    site.contact_page_en = 'For cooperation, consultation or more information, contact us through the channels below.'
if not site.contact_title_fa:
    site.contact_title_fa = 'در تماس باشید'
if not site.contact_title_en:
    site.contact_title_en = 'Get in Touch'

# Fill footer about if empty
if not site.about_short_fa:
    site.about_short_fa = 'بازوی فعال هلدینگ صنایع و معادن غدیر در زمینه اکتشاف، استخراج و فرآوری مواد معدنی در بیش از ۱۱ استان کشور.'
if not site.about_short_en:
    site.about_short_en = 'The active arm of Ghadir Mining & Industries Holding in exploration, extraction and processing of minerals across more than 11 provinces.'

site.save()
print("✅ متن‌های پیش‌فرض در فیلدها ریخته شد. حالا در ادمین آماده ویرایش هستن.")
print(f"  متن تماس: {site.contact_page_fa[:40]}...")
print(f"  عنوان تماس: {site.contact_title_fa}")
print(f"  درباره فوتر: {site.about_short_fa[:40]}...")
