[Doc] 添加doc

This commit is contained in:
ibuler
2017-03-26 11:50:09 +08:00
parent d3cdfc1b9d
commit 7ddfa2d25e
6 changed files with 138 additions and 8 deletions

View File

@@ -1,17 +1,17 @@
#!/bin/bash
#
python ../apps/manage.py shell << EOF
python2.7 ../apps/manage.py shell << EOF
from users.models.utils import *
generate_fake()
from assets.models.utils import *
generate_fake()
EOF
python ../apps/manage.py dbshell << EOF
python2.7 ../apps/manage.py dbshell << EOF
delete from django_content_type;
delete from auth_permission;
EOF
python ../apps/manage.py dumpdata > ../apps/fixtures/fake.json
python2.7 ../apps/manage.py dumpdata > ../apps/fixtures/fake.json

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#
python ../apps/manage.py shell << EOF
python2.7 ../apps/manage.py shell << EOF
from users.models import *
init_all_models()
@@ -10,9 +10,9 @@ init_all_models()
EOF
python ../apps/manage.py dbshell << EOF
python2.7 ../apps/manage.py dbshell << EOF
delete from django_content_type;
delete from auth_permission;
EOF
python ../apps/manage.py dumpdata > ../apps/fixtures/init.json
python2.7 ../apps/manage.py dumpdata > ../apps/fixtures/init.json

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#
python ../apps/manage.py loaddata init
python2.7 ../apps/manage.py loaddata init

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#
python ../apps/manage.py loaddata fake
python2.7 ../apps/manage.py loaddata fake