問題タブ [django-filer]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
django - 500 error when uploading files with Filer to S3 using boto3 and django-storages on Elastic Beanstalk
I receive the following 500
http error when attempting to upload a file via the django-cms Filer admin in my app deployed to Elastic Beanstalk:
In browser console, coming from fileuploader.min.js:26
:
POST http://app-staging.us-east-1.elasticbeanstalk.com/admin/filer/clipboard/operations/upload/1/?qqfile=example.jpg 500 (Internal Server Error)
I am using django-cms
(and therefore easy-thumbnails
), django-storages
and boto3
. When deploying, the collectstatic
command in my .ebextensions
config file works great, and the files are all nicely stored in the S3 bucket in /staging/static/
.
Removing the DEFAULT_FILE_STORAGE
assignment works fine, but is obviously untenable as each eb deploy
of any changes to beanstalk results in a new instance and erases previous file uploads.
Stack trace:
settings.py
custom_storages.py
django - PythonAnywhere SFTP を使用してアップロードされたファイルを保存し、Django Filer でファイルサイズの制限を超えるにはどうすればよいですか?
私は現在、ユーザーが管理者の Django Filer を使用してファイルをアップロードできる PythonAnywhere の Django Web サイト プロジェクトに取り組んでいます。パブリック Django ファイラー設定で正常に実装しました。ただし、256 MB を超えるファイルをアップロードできないようです。PythonAnywhere ユーザーに提供されている SFTP サーバーを使用することは、ファイルを保存する別の方法ですか? または、このサイズ制限を超える他の方法はありますか? サーバーをコードに書き込む方法がわかりません。Filer の SFTP アドレス形式と設定ファイルを以下に示します。
SFTP アドレスとホスト名の形式
filer.settings.py