News for hackers. Stuff that matters.
Re:Effective Django by eterm on Saturday March 30, 2013 @03:55PM (#5466456)
Fantastic so far, easy to follow.

I've come to a snag at "Writing a Test" (http://effectivedjango.com/tutorial/models.html#writing-a-te... ) though, it's not clear which file I should be adding the test class to.

From following the tutorial I would think models.py but from browsing the file structure I would expect test.py

Re:Effective Django by seagreen on Saturday March 30, 2013 @04:41PM (#5466607)
I don't know if this is the absolute best way but Two Scoops of Django recommends having a tests folder in each app. So tests for example_app/views.py are placed in example_app/tests/views.py.
Re:Effective Django by nyergler on Saturday March 30, 2013 @09:30PM (#5467292)
Yup, it's tests.py; I'm updating the doc now to be more explicit, thanks for calling that out!
Re:Effective Django by waterside81 on Saturday March 30, 2013 @04:39PM (#5466594)
yes, you put it in the tests.py file in your app directory. That way you can just run "python manage.py test myapp" and every test in myapp/tests.py will be executed.