mirror of https://github.com/jumpserver/jumpserver
parent
56e648e924
commit
831ac60e25
@ -1,17 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
|
|
||||||
python2.7 ../apps/manage.py shell << EOF
|
python ../apps/manage.py shell << EOF
|
||||||
from users.models.utils import *
|
from users.models.utils import *
|
||||||
generate_fake()
|
generate_fake()
|
||||||
from assets.models.utils import *
|
from assets.models.utils import *
|
||||||
generate_fake()
|
generate_fake()
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
python2.7 ../apps/manage.py dbshell << EOF
|
python ../apps/manage.py dbshell << EOF
|
||||||
delete from django_content_type;
|
delete from django_content_type;
|
||||||
delete from auth_permission;
|
delete from auth_permission;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
python2.7 ../apps/manage.py dumpdata > ../apps/fixtures/fake.json
|
python ../apps/manage.py dumpdata > ../apps/fixtures/fake.json
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
|
|
||||||
python2.7 ../apps/manage.py loaddata init
|
python ../apps/manage.py loaddata init
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
|
|
||||||
python2.7 ../apps/manage.py loaddata fake
|
python ../apps/manage.py loaddata fake
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
|
|
||||||
python2.7 ../apps/manage.py makemigrations
|
python ../apps/manage.py makemigrations
|
||||||
|
|
||||||
python2.7 ../apps/manage.py migrate
|
python ../apps/manage.py migrate
|
||||||
|
Loading…
Reference in new issue