Hacker Newsnew | comments | leaders | jobs | submitlogin
Launching a High Performance Django Site (menendez.com)
38 points by iamelgringo 568 days ago | 5 comments


18 points by simonw 567 days ago | link

Article would be improved by omission of tasteless stock photo.

-----

3 points by run4yourlives 567 days ago | link

Wow. When I read your comment I thought is was pretty prickish, wondering how a stock photo could possibly screw up a good article.

Then I visited the site. Agree 100%.

-----

4 points by comatose_kid 567 days ago | link

I would not invest too much time optimizing a site that hasn't launched. It's premature - you don't know how popular your site will be.

-----

1 point by j2d2 567 days ago | link

I'm not sure what he means here "You probably built your app using managers right?" Does anyone?

-----

6 points by simonw 567 days ago | link

http://www.djangoproject.com/documentation/db-api/#retrievin...

In Django, objects are retrieved from the ORM something like this:

entries = Entry.objects.filter(published = True)

Entry.objects is a "manager" - an object that knows how to implement operations across the overall set of objects. You can create custom managers if you want to add custom operations that can be run against all of the objects - for example, you might want to "Entry.published" to be a special manager that pre-filters your entries to the ones that have their published flag set.

-----




Lists | RSS | Bookmarklet | Guidelines | FAQ | News News | Feature Requests | Y Combinator | Apply | Library

Analytics by Mixpanel