Guest User

Untitled

a guest
May 27th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. DEFAULT_USER="admin"
  3. DEFAULT_EMAIL="admin@mail.com"
  4. DEFAULT_PASS="nothing1234"
  5.  
  6. ######### MAIN CLEAN #########
  7.  
  8. rm 'db.sqlite3'
  9. readonly virtual='/home/vubon/personal/upwork_env/bin/activate'
  10. source ${virtual}
  11. python manage.py makemigrations
  12. python manage.py migrate
  13.  
  14. echo "from django.contrib.auth.models import User; User.objects.create_superuser('$DEFAULT_USER', '$DEFAULT_EMAIL', '$DEFAULT_PASS')" | python manage.py shell --plain
Add Comment
Please, Sign In to add comment