简体   繁体   中英

ModuleNotFoundError: No module named 'django' on Elastic Beanstalk

I'm following AWS's Django documentation on EB, but I still get the same error in the logs:

ModuleNotFoundError: No module named 'django'

The documentation is already wrong on where to point your WSGIPath in .ebextensions/django.config , but I fixed it to point to my wsgi.py file.

The deploy works, but the site 500s.

What do I do?

ModuleNotFoundError: No module named 'django'

Make sure that you are installing packages and running your script on the correct repository.

site 500s.

There could be several reasons in the 500 status code, check the logs to get more about the error.

$ tail -f /var/log/eb-activity.log
$ tail -f /var/log/eb-commandprocessor.log

Usually, each application or web server stores its logs in its own directory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM