Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying django project on AWS elastic beanstalk

I am following the tutorial for deploying a django project on AWS elastic beanstalk here: http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html

My app works when I test locally but when I deploy, I'm getting a 404 error. Looking at the event logs, I see this message:

Error running user's commands : An error occurred running '. /opt/python/ondeck/env && PYTHONPATH=/opt/python/ondeck/app: django-admin.py syncdb --noinput' (rc: 127) /bin/sh: django-admin.py: command not found

That leads me to believe that the tutorial is missing a part about installing django files on the server or at least configuring my project to recognize django-admin.py. I have django installed on my local machine so it works there.

I know python support is brand new for elastic beanstalk but has anyone deployed django to it?

like image 376
Brian Yee Avatar asked Aug 29 '12 17:08

Brian Yee


1 Answers

I believe you don't need to put container_commands in .config because there is no database or table at this moment.

like image 106
masayang Avatar answered Oct 22 '22 03:10

masayang