You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
570 B
20 lines
570 B
import os
|
|
|
|
APPS = ('management', 'storage', 'access', 'courses', 'finance', 'journals', )
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
def main():
|
|
#os.system('rm -rf fixtures/')
|
|
#os.system('cp -R fixtures_back/ fixtures/')
|
|
for i in APPS:
|
|
os.chdir(os.path.join(BASE_DIR, i))
|
|
os.system('rm -rf *.pyc')
|
|
os.system('rm -rf migrations')
|
|
os.chdir(os.path.join(BASE_DIR))
|
|
#os.system('python manage.py makemigrations {0}'.format(i))
|
|
#os.system('python manage.py migrate')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|
|
|