A Django sample app running with uWSGI and Nginx on AWS Elastic Beanstalk.
A Django sample app running with uWSGI and Nginx on AWS Elastic Beanstalk.
$ eb init
$ eb create ebsample-env -p "Python 2.7" --single --sample
Setup environment properties:
$ eb setenv ALLOWED_HOSTS=<domain name> \
DATABASE_URL=mysql://<user:pass>@<host>:3306/<dbname>?charset=utf8mb4 \
DEBUG=off \
DJANGO_SETTINGS_MODULE=ebsample.settings \
SECRET_KEY=<secret key> \
WSGI_MODULE=ebsample.wsgi
$ eb deploy
or
$ eb deploy --staged
$ eb open
Change History: