3 ms·
Launching a High Performance Django Site
- simonw 18y agoArticle would be improved by omission of tasteless stock photo.
- run4yourlives 18y agoWow. 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%.
- j2d2 18y agoI'm not sure what he means here "You probably built your app using managers right?" Does anyone?
- simonw 18y agohttp://www.djangoproject.com/documentation/db-api/#retrieving-objects 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.
- comatose_kid 18y agoI 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.