Skip to main content

This is a Django app that provides helpers for uploading static files.

It is based off of github.com/jezdez/django-staticfiles but only uploads all the files in the collected STATIC_ROOT to S3 using the storages.backends.s3boto.S3BotoStorage storage backend in the django-storages app.

Installation

  • Use your favorite Python packaging tool to install uploadstatic from PyPI, e.g.:

    pip install django-uploadstatic
  • Added "uploadstatic" to your INSTALLED_APPS setting:

    INSTALLED_APPS = [
        # ...
        "uploadstatic",
    ]
  • Set your STATIC_URL setting to the URL that handles serving static files from S3:

    STATIC_URL = "https://s3.amazonaws.com/some-domain/"
  • Once you are ready to upload all static files that have been collecte in your site’s STATIC_ROOT, use the uploadstatic management command:

    python manage.py uploadstatic

    Then your files will be accessible from the STATIC_URL setting.

Download files

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

Source Distribution

django-uploadstatic-0.3.0.tar.gz (15.0 kB view details)

Uploaded Source

File details

Details for the file django-uploadstatic-0.3.0.tar.gz.

File metadata

File hashes

Hashes for django-uploadstatic-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9f3604470b97f9eb0aa655ff896cfe213438b5cf790029a2d52b1c4d0513d986
MD5 7820a01c08973492b0deaec4888ba36a
BLAKE2b-256 206d720aef019d7ee0a97ee409444a47c39b61c22e7ec926a143cf744fdeef6c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

Supported by

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