Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

:(( Error while running Course.objects.all

Why am I having following error:

from courses.models import Course
Course.objects.all
<bound method BaseManager.all of <django.db.models.manager.Manager object at 0x7f899477e518>>

1 Answer

Peter Lawless
Peter Lawless
24,404 Points

Try

Course.objects.all()

.all() is a method that we need to call!

Thank you . . . Sometimes simple '()' can destroy mood, motivation and learning pace . . . :)

Peter Lawless
Peter Lawless
24,404 Points

I know the feeling! Stick with it, though!