Live data from Hacker News

Must-have Django packages

devcharm.com

91–100 of 100 posts

Re: Must-have Django packages

#91
post #88
post #79

Earlier quoted context omitted.

For a greenfield app, would you recommend starting with 1.7, or do you think it will be simple enough to convert from South that it's not worth it? (I have no idea how stable 1.7 is)

Andrew has said in the past that his intent is to provide a migration path from classic South to "South 2.0" which will backport migrations to earlier versions of Django (versions 1.4-1.6, I believe) and also build on top of the migration infrastructure in Django 1.7. You should be fine sticking with South for now.

Cool, thanks very much to you and the other commenter.

Re: Must-have Django packages

#94

Earlier quoted context omitted.

I thought he might have meant that, but I never had too much difficulty doing this through the Django template API.

It's not bad, but the Jinja2 language is more expressive, and the API is a bit better. Not enough we would migrate away from Django templates to it, but enough to not migrate away from Jinja.

Fair enough, I tend to use something very restrictive like Django templates (I made/use an Erlang port of the language as well: https://github.com/oinksoft/dtl) or something very flexible like Mako if I have the choice and need it.

Re: Must-have Django packages

#95

"Django REST framework is an insane framework" I'm fed up with this kind of oppressive language. This is heteronormative and is discriminatory to the mentally ill. It's stuff like this that leads to the imbalance and under-representation in the industry. Let's boycott this author. (I would love not to have to write " " but having seen some of the comments here, I think I need to. I wonder how many white-knights-for-w…

[deleted]

Re: Must-have Django packages

#96

Earlier quoted context omitted.

How do you square that with the article? It specifically says that that Django REST is "insane".

The word insane does not appear on the page

It previously appeared, with regard to DRF, where the word 'excellent' does now.

Re: Must-have Django packages

#97
post #47

Amusingly, my must-have Django packages are mostly things that replace large chunks of Django (Jinja2 for templates, a DB connector/ORM for whatever database the project needs, which even for PostgreSQL is often plain SQLAlchemy). I guess I'll just use flask.py or something for my next project. This is not meant as criticism, just my personal experience.

Have a look at Pyramid[1] if you plan a slightly larger project. I've been looking at it for years.

[1] http://www.pylonsproject.org/

Re: Must-have Django packages

#98

What are people using these days for compiling their static assets (js minification + concatenation, etc)? We have been using django-pipeline but it has been a nightmare.

We're currently using Django Compressor [0], and it works pretty well. It was slightly annoying to get it to work well with staticfiles [1], as we host all of our content on S3 and serve through cloudfront in production. But, it's nice because now we can do this in our template: and with compress like this: {% compress js %} {% endcompress %} so that referencing static files is consistent. [0]: https://github.com/jez…

I used to use this, and it is convenient for small sites. But it quickly gets hard to manage. It also makes it extremely difficult to share compiled assets between pages with different templates.

Re: Must-have Django packages

#99

What are people using these days for compiling their static assets (js minification + concatenation, etc)? We have been using django-pipeline but it has been a nightmare.

We use django-assets. http://elsdoerfer.name/docs/django-assets/

+1 for django-assets. I've found this to be the best solution so far. I've used it combination with django-storages to compile and push assets to S3.

Re: Must-have Django packages

#100
post #75

A few I work with on most projects are... Backend: one of the most popular API Frameworks is Tastypie. Authentication and authorization: Django Userena. Debugging: Django Extensions. Django CMS Django Haystack These are a must for your tool kit.

I would recommend DjangoRestFramework any day over Tastypie after having used Tastypie for two years. DjangoRestFramework code base is better, it's better thought out, it should be part of Django core.

I've used both in projects I honestly don't like the auto documentation Django Rest Framework assumes you want. I enjoyed using both but I lead towards TastyPie, yum!
Post reply on HN