[Answered ]-Django with AWS – Correct way to syncdb and run scheema migrations using South

2👍

You need to make a container command, heres a snippet from the aws docs…

On your local computer, update your configuration file (e.g., myapp.config) in the > .ebextensions directory.

container_commands:
  01_syncdb:
    command: "django-admin.py syncdb --migrate --noinput"
    leader_only: true

See http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html (Step 6, point number 2) Sorry no anchors in aws docs..

EDIT: Added in migrate flag to syncdb, and changed aws doc reference to a more pertinent one

Leave a comment