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.
jumpserver/utils/export_fake_data.sh

18 lines
337 B

8 years ago
#!/bin/bash
#
8 years ago
python2.7 ../apps/manage.py shell << EOF
from users.models.utils import *
8 years ago
generate_fake()
from assets.models.utils import *
8 years ago
generate_fake()
EOF
8 years ago
python2.7 ../apps/manage.py dbshell << EOF
8 years ago
delete from django_content_type;
delete from auth_permission;
EOF
8 years ago
python2.7 ../apps/manage.py dumpdata > ../apps/fixtures/fake.json