将 django 项目上传到 AWS 时出现问题
problem uploading a django project to AWS
您好,我正在尝试将我的 django 项目放到 AWS 上。
我在教程中做了以下事情
(https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django-configure-for-eb)
小米配置文件django.config是:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: ebdjango.wsgi:application
container_commands:
01_postgresql:
command: sudo yum -y install gcc python-setuptools python-devel postgresql-devel
02_postgresql:
command: sudo easy_install psycopg2
我创建了一个环境(eb create django-env1)。然后当我这样做时它会告诉我以下内容 (eb status).
Environment details for: django-env1
Region: us-west-2
Deployed Version: app-b7ea-210708_181635
Environment ID: e-ax2b7ff3bb
Platform: arn:aws:elasticbeanstalk:us-west-2::platform/Python 2.6 running on 64bit Amazon Linux/2.9.15
Tier: WebServer-Standard-1.0
CNAME: django-env1.eba-b3pwjnx2.us-west-2.elasticbeanstalk.com
Updated: 2021-07-08 16:19:37.455000+00:00
Status: Ready
Health: Green
Alert: Your environment is using a retired platform branch. It's no longer supported.
我不知道为什么,因为我不知道为什么。
谢谢
您正在使用不再受支持的 Python 2.6 running on 64bit Amazon Linux/2.9.15
。你必须使用 supported 的东西,例如
64bit Amazon Linux 2 v3.3.2 running Python 3.8
您好,我正在尝试将我的 django 项目放到 AWS 上。
我在教程中做了以下事情 (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django-configure-for-eb)
小米配置文件django.config是:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: ebdjango.wsgi:application
container_commands:
01_postgresql:
command: sudo yum -y install gcc python-setuptools python-devel postgresql-devel
02_postgresql:
command: sudo easy_install psycopg2
我创建了一个环境(eb create django-env1)。然后当我这样做时它会告诉我以下内容 (eb status).
Environment details for: django-env1
Region: us-west-2
Deployed Version: app-b7ea-210708_181635
Environment ID: e-ax2b7ff3bb
Platform: arn:aws:elasticbeanstalk:us-west-2::platform/Python 2.6 running on 64bit Amazon Linux/2.9.15
Tier: WebServer-Standard-1.0
CNAME: django-env1.eba-b3pwjnx2.us-west-2.elasticbeanstalk.com
Updated: 2021-07-08 16:19:37.455000+00:00
Status: Ready
Health: Green
Alert: Your environment is using a retired platform branch. It's no longer supported.
我不知道为什么,因为我不知道为什么。
谢谢
您正在使用不再受支持的 Python 2.6 running on 64bit Amazon Linux/2.9.15
。你必须使用 supported 的东西,例如
64bit Amazon Linux 2 v3.3.2 running Python 3.8