montylounge / django-sugar Goto Github PK
View Code? Open in Web Editor NEWCurated collection of all the sweet Django helpers/utilities developers create, and sometimes recreate too often.
License: BSD 3-Clause "New" or "Revised" License
Curated collection of all the sweet Django helpers/utilities developers create, and sometimes recreate too often.
License: BSD 3-Clause "New" or "Revised" License
Why isn't this available in pypi and installable via easy_install or pip? Thanks.
in sugar/views/decorators.py there is a line:
from lib.http import JsonResponse
I suppose correct one should be
from json import JsonResponse
or
from sugar.views.json import JsonResponse
at this moment @render_to
decorator, requires template name as an argument.
I suppose it will be nice to have an option to leave it empty.
This is useful when a view function is accepting a template as an argument, e.g.:
@render_to
def my_view(request, template='template.html'):
return {}, template
Get things in order and add to pypi.
It's a weird issue, but there's an easy fix.
>>> import pygments
>>> pygments.lexers
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'lexers'
>>> from pygments import lexers
>>> lexers
<module 'pygments.lexers' from '/home/conesus/lib/python2.5/pygments/lexers/__init__.pyc'>
Go figure.
To fix, just add/change these lines in pygment_tags.py
:
Add:
from pygments import lexers
from pygments import formatters
Change:
pygments.lexers to lexers
pygments.formatters to formatters
This is because of the autoloading()
behavior in lexers/__init__.py
.
hi,
You have a duplicate keyword in setup.py located line 6 and 11.
It raises an error with pip during the installation of django-mingus with stable-requirements.txt:
Obtaining django-sugar from git+git://github.com/montylounge/django-sugar.git@9a10d89d7431daf989d44d8c470229dec230ffc1#egg=django_sugar-0.1-py2.5-9a10d89d7431daf989d44d8c470229dec230ffc1 (from -r stable-requirements.txt (line 30)) Updating clone /Users/thoas/virtualenvs/myblog/src/django-sugar (to revision 9a10d89d7431daf989d44d8c470229dec230ffc1) Running setup.py egg_info for package django-sugar Traceback (most recent call last): File "", line 13, in ? File "/Users/thoas/virtualenvs/myblog/src/django-sugar/setup.py", line 11 license='BSD', SyntaxError: duplicate keyword argument Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 13, in ? File "/Users/thoas/virtualenvs/myblog/src/django-sugar/setup.py", line 11 license='BSD', SyntaxError: duplicate keyword argument
tchô.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.