This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A Django app that provides helpers for uploading static files.

Project Description

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.

Release History

Release History

This version
History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-uploadstatic-0.3.0.tar.gz (15.0 kB) Copy SHA256 Checksum SHA256 Source Jun 8, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting