When you changed the strategy (start serving static and media files using S3), you needed to install django-storages
and change some configurations at settings.py
file. Creating static files using this new strategy seems to require psycopg2.extensions
which is not available through the binary package (psycopg2-binary
). To try to override this problem, I installed psycopg2
in my virtual environment and I could made the static files, but other problem arised: Elastic Beanstalk was not able to install psycopg2
.
packages:
yum:
amazon-linux-extras: []
commands:
01_postgres_activate:
command: sudo amazon-linux-extras enable postgresql10
02_postgres_install:
command: sudo yum install -y postgresql-devel