django_miny_tiny_url/contrib/sites/migrations/0003_set_site_domain_and_name.py
def update_site_forward(apps, schema_editor):
    """Set site domain and name."""
    Site = apps.get_model("sites", "Site")
    Site.objects.update_or_create(
        id=settings.SITE_ID,
        defaults={
            "domain": "example.com",
            "name": "Django Miny Tiny URL",
        },
    )
Set site domain and name.
Set site domain and name.
Set site domain and name .
def update_site_forward(apps, schema_editor):
    Site = apps.get_model("sites", "Site")
    Site.objects.update_or_create(
        id=settings.SITE_ID,
        defaults={
            "domain": "example.com",
            "name": "Django Miny Tiny URL",
        },
    )
def update_site_forward ( apps , schema_editor ) : Site = apps . get_model ( "sites" , "Site" ) Site . objects . update_or_create ( id = settings . SITE_ID , defaults = { "domain" : "example.com" , "name" : "Django Miny Tiny URL" , } , )
Set site domain and name.
Set site domain and name .
"""Set site domain and name."""
apps
schema_editor