Code Monkey home page Code Monkey logo

django-offlinecdn's Introduction

offline-cdn

A nice way to allow for online-offline development, but also use cdn's for package dependencies.

Read the documentation.

Build Status Version Downloads Test Coverage Documentation Status

django-offlinecdn's People

Contributors

gabegaster avatar lowks avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

django-offlinecdn's Issues

include domain name in resulting local path

https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.js should be stored at cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.js within the OFFLINECDN_STATIC_ROOT and hosted at {{OFFLINECDN_STATIC_URL}}cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.js. currently the cdnjs.cloudflare.com part of the url is not included, which could resulting problems if some other CDN has the same path but has a different version of d3 stored there (for some odd reason)

locally host internally referenced js/css packages as well

could either parse the js/css to find these things or could also use something like selenium to track which other resources are requested to make sure we get them all. nice for v2

js

  • jquery.min.map file is not downloaded by offlinecdn

css

  • background images (e.g., sprites) are not downloaded locally either

download external resources in parallel?

Currently, the requests are blocking and all occur in series. This is fine for the first time you load a resource, but might be nice to have this happen in parallel in v2

fix pypi

pip install django-offlinecdn
Downloading/unpacking django-offlinecdn
Downloading django-offlinecdn-0.0.01.tar.gz
Running setup.py (path:/Users/gabeair/.virtualenvs/steelcase/build/django-offlinecdn/setup.py) egg_info for package django-offlinecdn
Traceback (most recent call last):
File "", line 17, in
File "/Users/gabeair/.virtualenvs/steelcase/build/django-offlinecdn/setup.py", line 16, in
with open(filename, 'r') as stream:
IOError: [Errno 2] No such file or directory: 'requirements/python'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/Users/gabeair/.virtualenvs/steelcase/build/django-offlinecdn/setup.py", line 16, in

with open(filename, 'r') as stream:

IOError: [Errno 2] No such file or directory: 'requirements/python'


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/gabeair/.virtualenvs/steelcase/build/django-offlinecdn
Storing debug log for failure in /Users/gabeair/.pip/pip.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.