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 trialVakho Vakhtangishvili
19,379 Points:(( 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
24,404 PointsTry
Course.objects.all()
.all() is a method that we need to call!
Vakho Vakhtangishvili
19,379 PointsVakho Vakhtangishvili
19,379 PointsThank you . . . Sometimes simple '()' can destroy mood, motivation and learning pace . . . :)
Peter Lawless
24,404 PointsPeter Lawless
24,404 PointsI know the feeling! Stick with it, though!