# coding=utf-8

import os
from ecloud.settings import BASE_DIR, DATABASES


if __name__ == '__main__':
    for db in DATABASES:
        # cinder, nova, neutron ...
        db_name = DATABASES[db]['NAME']
        os.system('python3 manage.py inspectdb --database %s > %s' %
                  (db_name, os.path.join(BASE_DIR, db_name, 'models.py')))

cbbdea9fa2249d9fad410f632440916da156c944
<mask token>

<mask token>
if __name__ == '__main__':
    for db in DATABASES:
        db_name = DATABASES[db]['NAME']
        os.system('python3 manage.py inspectdb --database %s > %s' % (
            db_name, os.path.join(BASE_DIR, db_name, 'models.py')))

import os
from ecloud.settings import BASE_DIR, DATABASES
if __name__ == '__main__':
    for db in DATABASES:
        db_name = DATABASES[db]['NAME']
        os.system('python3 manage.py inspectdb --database %s > %s' % (
            db_name, os.path.join(BASE_DIR, db_name, 'models.py')))

# coding=utf-8

import os
from ecloud.settings import BASE_DIR, DATABASES


if __name__ == '__main__':
    for db in DATABASES:
        # cinder, nova, neutron ...
        db_name = DATABASES[db]['NAME']
        os.system('python3 manage.py inspectdb --database %s > %s' %
                  (db_name, os.path.join(BASE_DIR, db_name, 'models.py')))
