Git Product home page Git Product logo

django-media-bundler's People

Contributors

djrodgerspryor avatar rnk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-media-bundler's Issues

Sprites with numbers have numbers removed

When creating sprites from files that contain digits in the file name, all digits are removed. This is incorrect as CSS class names can have numbers (but can't start with one!)

files being generated twice

Hi. I just found this project and decided to check it out. Is it intended to create two copies of the bundled files when using versioning? I.E. css_bundle_name.a6cb96e3f3795fbb06dd43c7f469ac7a94b56a86.css and css_bundle_name.css are generated...

Here are the settings I have:

media_bundler settings

USE_BUNDLES = True
DEFER_JAVASCRIPT = False
BUNDLE_VERSION_FILE = os.path.join(os.path.dirname(file), 'bundle_versions.py').replace('','/')

MEDIA_BUNDLES = (
{"type": "css",
"name": "css_bundle_name",
"path": MEDIA_ROOT + "/css/",
"url": MEDIA_URL + "static/css/",
"minify": True, # If you want to minify your source.
"files": (
"superfish/superfish.css",
"superfish/superfish-navbar.css",
"superfish/superfish-vertical.css",
)},
{"type": "javascript",
"name": "js_bundle_name",
"path": MEDIA_ROOT + "/js/",
"url": MEDIA_URL + "static/js/",
"minify": True, # If you want to minify your source.
"files": (
"jquery/jquery-1.4.1.js",
"jquery/plugins/jquery.bgiframe.js",
"jquery/plugins/jquery.clearfield.js",
)},
)

Project Dead?

Is this project dead? Has someone else picked it up?

Going through README.rst impressions

Just wanted to provide some feedback regarding going through the short tutorial in the README.

  • I started a new Django project, and DEBUG = True. Since deferred is on by default, it took me a while to figure out why I wasn't seeing anything.
  • I finally got the deferred content to show, so I turned DEBUG = False to watch it bundle. It 404'ed because I did not run bundle_media. It would be nice to be reminded of this at the end of the README.

Some ideas:

  • Include an examples Django project that is all setup in the repo. I really just wanted to see the thing work and it wasn't necessary to create everything from scratch to do this.

Otherwise, great project. Your PNG sprite stuff is the best I've seen.

Support cache busting

A timestamp should be added to the generated filename or a query parameter to the URL to force the browser to refetch the bundle if it updates. I kind of like only having one file around and just diffing against it when the bundle is generated, so I’m leaning towards the query parameter. It’s still annoying because we have to track the version, and I’m not sure how to do that easily.

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.