Django runs under python 2.7 on AWS Elastic Beanstalk

According to AWS docs, Elastic Beanstalk supports Python 2.6. I wonder if anyone installed custom AMI using EBS-supported 64-bit Linux AMI to run django under Python 2.7 on beanstalk? While most aspects of customization created under 2.7 are likely to be just using virtualenv or changing symlinks, I'm worried about the amazon of the mod_wsgi assembly. I understand that depending on how mod_wsgi was compiled, there may be problems running it in conjunction with Python 2.7. I also wonder if postgreSQL problems will occur ...

+6
source share
4 answers

Today (November 8, 2013), when I tested AWS support for Python 2.7 AMI. Although the documentation is still not being updated properly. Try using the eb command line tool and then you can find the following AMI options.

17) 32bit Amazon Linux 2013.09 running Python 2.7 18) 64bit Amazon Linux 2013.09 running Python 2.7 

You no longer need to use Python 2.7! :)

+1
source

This blog post seems interesting:

Getting Python 2.7 project on Elastic Beanstalk

The author also provided a sample project for testing:

https://github.com/leetreveil/elasticbeanstalk-python27

+3
source

To get around the mod_wsgi restriction, you can deploy the application in your own wsgi container, such as uWSGI, and add the configuration to apache to use as a reverse proxy for your WSGI container.

You can use container_commands commands to place apache configuration files in the / etc / httpd / ... directory

+1
source

In the end, I built mod_wsgi using Python 2.7. The documentation was easy to follow: http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide

I recently switched from Amazon Linux AMI to the official Ubuntu AMI: https://help.ubuntu.com/community/EC2StartersGuide

It's so easy to add instances to the load balancer and connect to RDS using ubuntu ami. I did not see the need to continue working with AMI Amazon Linux and beanstalk, which I found quite restrictive.

-1
source

All Articles