daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest May 27th, 2018 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top