Tôi thực hành thiết lập Django dưới Elastic Beanstalk từ tài liệu đó. Nhưng có lỗi.Amazon Elastic Beanstalk: cách thiết lập đường dẫn wsgi?
ERROR Your WSGIPath refers to a file that does not exist.
thư mục My như thế này:
-djangoenv (where I use git)
- mysite
-manage.py
-mysite
-__init__.py
-settings.py
-urls.py
-wsgi.py
và My các .elasticbeanstalk/optionsettings.djapp
tập tin như thế này:
Và .ebextensions/python.config
như thế này, tôi không biết được nơi để đặt này .Try nhiều lần vẫn không hoạt động. Tôi thử mysite/mysite/wsgi.py
vẫn không hoạt động
container_commands:
01_syncdb:
command: "django-admin.py syncdb --noinput"
leader_only: true
option_settings:
- namespace: aws:elasticbeanstalk:container:python
option_name: WSGIPath
value: mysite/wsgi.py
- option_name: DJANGO_SETTINGS_MODULE
value: mysite.settings
Hãy cho tôi biết cách và nơi đặt đường dẫn wsgi của mình ??
Cảm ơn bạn rất nhiều!
Tôi thử "mysite/wsgi.py" Và cũng sử dụng '' '' eb update'''' Và vẫn không thể tìm thấy đường dẫn. – user2492364