cutter first edit 1.0

This commit is contained in:
myvault 2018-09-27 11:39:35 +03:00
parent f4a5e97369
commit 325526f5f5
7 changed files with 16 additions and 0 deletions

2
active.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
. ../venv/que_mvp_env/bin/activate

6
clear_db.sh Executable file
View File

@ -0,0 +1,6 @@
rm -rf db.sqli*
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete
. ./makemigrations.sh
. ./migrate.sh
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'Amman123')" | python manage.py shell

4
git_clean_cache.sh Executable file
View File

@ -0,0 +1,4 @@
git rm -r --cached .
git add -A
git commit -am 'Removing ignored files'
git push

1
makemigrations.sh Executable file
View File

@ -0,0 +1 @@
./manage.py makemigrations

1
migrate.sh Executable file
View File

@ -0,0 +1 @@
./manage.py migrate

1
run.sh Executable file
View File

@ -0,0 +1 @@
./manage.py runserver_plus

1
shell.sh Executable file
View File

@ -0,0 +1 @@
python manage.py shell_plus