Skip to main content

A Mouritech package

Project description

At the moment, our code is capable of storing the files in the database. However, this is not a desirable practice. With time our database will get "fat" and slow, and we do not want that to happen. Images haven't been stored in databases as blobs for a while now, and you'll typically save images on your own server where the application is hosted on, or on an external server or service such as AWS's S3.

Multiple file input from django.forms import ModelForm, ClearableFileInput from .models import Beast

class BeastForm(ModelForm): class Meta: model = Beast fields = 'all' widgets = { 'media': ClearableFileInput(attrs={'multiple': True}) }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MT_PY_S3_STORAGE_BUCKET-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

MT_PY_S3_STORAGE_BUCKET-0.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file MT_PY_S3_STORAGE_BUCKET-0.0.1.tar.gz.

File metadata

File hashes

Hashes for MT_PY_S3_STORAGE_BUCKET-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fb408158d19c445010e7bb87b30d0be47e06d667c0741465a26a7a9253017375
MD5 1cad2f088884b7cd796c7b3d8e0d92b7
BLAKE2b-256 70500d454ccbc81030512eafcbaf5ba1eff6edabe51587424cb05d9488133e7b

See more details on using hashes here.

File details

Details for the file MT_PY_S3_STORAGE_BUCKET-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for MT_PY_S3_STORAGE_BUCKET-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2989d7c090b560b63bf8d760d2551343d660cd358822e5ca82f132e60f0bed7
MD5 be844cba3d847e7c9b00ffe2e725628b
BLAKE2b-256 c4b7c8190172d5fc9a5f93985ed0a29ef2c7536ea93b0219a6f3846f558a8024

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page