def create_dark_lang_config(apps, schema_editor):
 DarkLangConfig = apps.get_model(u'dark_lang', u'DarkLangConfig')
 objects = DarkLangConfig.objects
 if (not objects.exists()):
  objects.create(enabled=True)

def create_dark_lang_config ( apps , schema_editor ) : DarkLangConfig = apps . get_model ( u'dark_lang' , u'DarkLangConfig' ) objects = DarkLangConfig . objects if ( not objects . exists ( ) ) : objects . create ( enabled = True )
enable darklang by default when it is installed .