Open Jamie-BitFlight opened 7 years ago
hm, python 3.5 should be modern enough, and the code we rely on should already work without issues, thanks for the bug report, we'll look into this. Can you explain the setup you're using, or if possible, do you have STR/minimal reproducible, verifiable example code that we can run?
(we can't seem to reproduce that error here using python 3.6 running inside a virtual environment)
I have it in a docker dockerfile FROM python:3.5 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code/`
requirements.txt cat requirements.txt -e git://github.com/boto/botocore.git@develop#egg=botocore -e git://github.com/boto/jmespath.git@develop#egg=jmespath -e git://github.com/boto/s3transfer.git@develop#egg=s3transfer -e git://github.com/boto/boto3.git@develop#egg=boto3 -e 'git+https://github.com/jschneier/django-storages.git#egg=django-storages' nose mock wheel simplejson python-json-logger json-logging-py setuptools pillow mezzanine psycopg2 python-dateutil filebrowser_s3 django-watchman paste gevent django-redis gunicorn
and a snippit from my settings.py (i replaced the aws id and secret with made up ones)
`# These will be added to INSTALLED_APPS
, only if available.
OPTIONAL_APPS = (
"filebrowser_s3",
"theme",
"storages",
"watchman",
# "mezzanine.mobile",
#"django_singleton_admin",
"theme.blog_mods",
"theme.portfolio",
"debug_toolbar",
"django_extensions",
"compressor",
"gunicorn",
PACKAGE_NAME_FILEBROWSER,
PACKAGE_NAME_GRAPPELLI,
) AWS_S3_REGION_NAME = 'eu-west-2' AWS_S3_CUSTOM_DOMAIN = 'assets.example.com' AWS_STORAGE_BUCKET_NAME = 'www.example.com' #bucket name is www. instead of assets. because i am lazy AWS_ACCESS_KEY_ID = 'ALIAJ6XK5H7OF2438THQ' AWS_SECRET_ACCESS_KEY = '0UqSjhR82vdjcJD6jcbtee1A4zjOb/ycSe8vO40+'
DEFAULT_FILE_STORAGE = 'filebrowser_s3.storage.S3MediaStorage'
AWS_LOCATION = 'media' MEDIA_URL = 'https://' + AWS_S3_CUSTOM_DOMAIN + '/' + AWS_LOCATION + '/' MEDIA_ROOT = '' STATICFILES_LOCATION = 'static' STATICFILES_STORAGE = 'custom_storages.StaticStorage' STATIC_URL = "https://%s/%s/" % (AWS_S3_CUSTOM_DOMAIN, STATICFILES_LOCATION)
FILEBROWSER_DIRECTORY = ''
##################
################## SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')`