Skip to main content

Django staticfiles extension to download third-party static files

Project description

django-staticfiles-downloader provides staticfiles_downloader.DownloaderFinder, an extension of django.contrib.staticfiles, which allows you to specify static files with urls and optionaly checksum in your Django application or Django project settings. This is particularly useful, when using third-party static files, if you don’t want to either include the files in your project nor depend on CDN in runtime.

The static files are collected with python collectstatic.


pip install  django-staticfiles-downloader


Add staticfiles_downloader.DownloaderFinder to settings.STATICFILES_FINDERS:


Define static files urls in your Django application

# your_app/
staticfiles_urls = {
    # use only url
    'my_app/js/jquery-3.2.1.min.js': '',
    # or use url and checksum
    'my_app/js/jquery-2.2.4.min.js': (

Define static files urls in your Django project settings

# your_project/
    # use only url
    'js/jquery-3.2.1.min.js': '',
    # or use url and checksum
    'js/jquery-2.2.4.min.js': (

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-staticfiles-downloader-1.0.0.tar.gz (5.0 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page