Parcourir la source

Replace welcome page for Squash instances

Tom Dyson il y a 5 ans
Parent
commit
92ba2c4832
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      .squash.yml

+ 1 - 0
.squash.yml

@@ -16,6 +16,7 @@ deployments:
       - wagtail start mysite
       - cd /myproject/mysite
       - python manage.py migrate
+      - echo "<br><h1>Wagtail test instance</h1><p>Log into <a href='/admin/'>/admin/</a> with 'admin' / 'changeme'.</p>" > home/templates/home/welcome_page.html
       - echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'changeme')" | python manage.py shell    
     launch_steps:
       - cd /myproject/mysite