Skip to main content

django static/ S3

Project description

Installation

$ [sudo] pip install django-static-s3
$ [sudo] npm i -g django-static-s3

How it works

static/ hard-coded folder

scripts:

  • create full-access user and credentials
  • upload static/

hard-coded environment variables names:

  • AWS_S3_STATIC_BUCKET
  • AWS_S3_STATIC_USER
  • AWS_S3_STATIC_ACCESS_KEY_ID
  • AWS_S3_STATIC_SECRET_ACCESS_KEY

Examples

Makefile, create env

STATIC_BUCKET:=BUCKET_NAME
all:
    test -s .env.s3.static || static-s3-create-env $(STATIC_BUCKET) > .env.s3.static

upload static/ to S3

export DJANGO_SETTINGS_MODULE=settings.dev
python manage.py collectstatic --no-input

set -o allexport
. .env.s3.static || exit

static-s3-upload

readme42.com

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

django-static-s3-2020.7.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file django-static-s3-2020.7.1.tar.gz.

File metadata

  • Download URL: django-static-s3-2020.7.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7

File hashes

Hashes for django-static-s3-2020.7.1.tar.gz
Algorithm Hash digest
SHA256 076aa3c67ca44ccb14fb8b644276a98f3d8c630790cf9f0371f42f8113c5d0d1
MD5 295791e508d30fd6f1c39fa9d4ad9cca
BLAKE2b-256 765153573b6e44f394ec3519ba50711305aa5463bdce00e7821e647db335dad9

See more details on using hashes here.

Supported by

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