Giter Site home page Giter Site logo

django-smart-load-tag's Issues

pip install django-smart-load-tag fails

With an error like this:

IOError: [Errno 2] No such file or directory: 'build/django-smart-load-tag/README.rst'

You need a MANIFEST.in file that includes README.rst. You should probably also include LICENSE and tests/. Otherwise those files won't be included in the tarball that's upload to PyPI (the one generated by ./setup.py sdist).

ERROR: "too many values to unpack "

I am trying to import a thumbnail tag from a third party app called sorl, located at sorl.thumbnail.templatetags.thumbnail, and I keep on getting the error: "too many values to unpack". It excepts out at C:\Python27\lib\site-packages\smart_load_tag\templatetags\smart_load.py in parse_lib_tag, line 44

Any insight into what the problem is that is causing this issue? I tried both load and import tags.

Install doc suggestion?

Hey, thanks for writing this - it makes my life much easier.

One minor suggestion on the docs - throwing a quick install section, that does the 'put it in installed apps', and 'here's how to include it by default' stuff, ie:

urls.py

from django.template import add_to_builtins
add_to_builtins('smart_load_tag.templatetags.smart_load')

Would be happy to make a pull request to save you the time if you'd like!

Thanks again.

Cannot load thumbnail from sorl.thumbnail

This is a really great app, thanks dude!

In my project I have two apps installed, easy_thumbnails and sorl.thumbnail. Both define the 'thumbnail' tag and your app is the perfect solution to solve the conflict.

Unfortunately, the import/load tags from smart_load do not work with app names that have dots, like is the case with the sorl.thumbnail app. The fix is really easy. I am going to submit a fix, a pull request to you.

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.