Webinar: Deploying a Django Application to AWS Elastic Beanstalk

Amazon Web Services · 36K views · 2012 · 14:11

Open on YouTube

Cloud, DevOps & reliabilityWeb developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed to deploy Django on Elastic Beanstalk, usually when asking what to do about the database, static files or admin login problems that came after.

Recommended by 0 people across 0 different months, 2013 to 2014.

What it is

A 14-minute AWS webinar clip that walks through deploying a sample app to AWS Elastic Beanstalk with the eb command line tool and Git, then updating it to run on the Django framework. It is presented by Amazon Web Services as a companion to their Django walkthrough docs.

What people said

Cites greenafrican · 2013-08 · Stack Overflow · on “Django local version using remote static files despite local settings”

I have managed to successfully deploy my Django app to AWS Elastic Beanstalk (using eb). I have followed the steps laid out here [this video] and here [LINK] and am using the django-storages (boto) framework to assist with staticfile management to S3. I have the following settings in my SETTINGS.PY: STATIC_ROOT = os.path.join( os.path.dirname( os.path.dirname( os.path.abspath(__file__))), 'static') DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage' AWS_ACCESS_KEY_ID = 'access-key' AWS_SECRET_ACCESS_KEY = 'secret-key' AWS_STORAGE_BUCKET_NAME = 'bucket-name' STATIC_URL = '/static/' STATICFILES_DIRS = () STATICFILES_FINDERS

Cites vt2424253 · 2014-03 · Stack Overflow · on “Deploy Django using MySQL to AWS EC2 and RDS”

I'm trying out AWS EC2 and RDS. I had followed this tutorial and it worked, but the tutorial is missing a database migration. [this video] So, could someone point me in the right direction to continue with the database migration? I've tried [LINK] but it didn't work for me because of an RDS permission issue. I've also tried the instructions on Amazon, [LINK] but it just confused me even more. [LINK] I've posted a message on AWS forum, but no one answered. And I was hoping that someone here can help me out. I just need some plain simple example such as step1. From local pc export MySQL with mysqldump (done) step2. Upload local mysqldump.sql file to EC2 (I don't know how to do) step3. import mysqld

Cites vt2424253 · 2014-03 · Stack Overflow · on “What is my user and pass? Deploy django on AWS EC2 but can not login admin”

I've followed this youtube instruction from amazon to deploy django web app to AWS EB EC2. The website successfully ran. But I can not login to admin. The admin that came with django polls example. I recall that during the setup process, it prompt me for RDS setup and since my web app use MySQL, I had to pick RDS setup. When I setup the RDS, it did not prompt me to create a user, but only prompted me to create a password, which dutifully I did. [this video] Similar instructions can be found on AWS, too. [LINK] I've tried username 'root' and password is 'blank' which works on my local pc, but of course that would make things too simple. After that attempt failed, I did some searching in EC2 and RD

Cites SilentDev · 2014-07 · Stack Overflow · on “Django AWS Eslastic Beanktalk not deploying - Internal Server Error”

I'm following this tutorial: [LINK] I'm on Step 6. I already created my AWS Elastic Beanstalk Python Application and now I want to link it to my Django application. This is my directory: ~/Documents/myapp myapp manage.py requirements.txt .ebextensions .elasticbeanstalk .git .gitignore Inside my .ebextensions is myapp.config: container_commands: 01_syncdb: command: "django-admin.py syncdb --noinput" leader_only: true option_settings: - namespace: aws:elasticbeanstalk:container:python option_name: WSGIPath value: myapp/wsgi.py - option_name: DJANGO_SETTINGS_MODULE value: myapp.settings - option_name: AWS_SECRET_KEY value: myUsersSecretKey - option_name: AWS_ACCESS_KEY_ID value: myUsersAcessKey