Skip to main content

LoR as 'Local or Remote' is a useful tool for manage static files between testing and production.

Project description

LoR as “Local or Remote” is a useful tool for manage static files between testing and production.


Install the package on your system:

pip install django-static-lor

Make the following things in your

  • Add lor app at the beginning of your INSTALLED_APPS

  • Add LOR_USE_LOCAL_URLS for define if you want local or remote URLs (Better is simply LOR_USE_LOCAL_URLS = DEBUG

  • Add LOR_STATIC_DIR for define where is the app’s static directory

  • Add LOR_STATIC_DIR in STATICFILES_DIRS if you want to serve it when DEBUG == False

  • Add you matches in LOR_FILES_URLS

Your settings will look like something like this:

LOR_STATIC_DIR = '/my/lor/static/dir/'

    'jquery': ('js/jquery.js',



In templates

{% load lor %}
My jQuery URL: {% lor_url 'jquery' %}

Collect remote files

./ wget

This will download all files in LOR_FILES_URLS and put them in LOR_USE_LOCAL_URLS.

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-lor-0.1.0.tar.gz (6.5 kB view hashes)

Uploaded source

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