Browse Source

Create default superuser in dev init

rafalp 6 years ago
parent
commit
3929f17369
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dev

+ 2 - 0
dev

@@ -122,6 +122,8 @@ init_in_docker() {
     mv devproject_tmp devproject
     # migrate the DB
     python manage.py migrate
+    # create superuser Admin with password "password"
+    python manage.py createsuperuser --username Admin --email admin@example.com --password password
 }
 
 # Clear existing dev project