2 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
4 from plstackapi.core.models.site import Site
5 from plstackapi.openstack.driver import OpenStackDriver
9 driver = OpenStackDriver()
10 # fill in null tenant ids
11 sites = Site.objects.filter(tenant_id=None)
13 # calling save() on the model should force the tenant_id to be set
17 if __name__ == '__main__':