sandiegopython / test-driven-django-development

This repository contains materials for a San Diego Python workshop on learning Django with test inspired development
http://test-driven-django-development.readthedocs.org/
Other
102 stars 35 forks source link

limit # of posts on homepage #11

Open paulcollinsiii opened 10 years ago

paulcollinsiii commented 10 years ago

This should be some kind of user configurable setting. Probably makes the most sense in settings.py

Later on for testing perhaps we should use factory_boy to assert that the n+1 post does NOT show up on the page?

treyhunner commented 10 years ago

You mentioned using a template tag for this.

Also not sure how factory_boy is applicable here.

treyhunner commented 10 years ago

Nevermind, the template tag was for the sidebar history.

treyhunner commented 10 years ago

@ everyone: do you think this is a a worthwhile pursuit?:

I think this demonstrates: