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 Improve a Django Project

James J. McCombie
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
James J. McCombie
Python Web Development Techdegree Graduate 21,199 Points

Python web development tech degree project 9 - Is the database corrupted?

I am having trouble with the database supplied. Using Prefetch, throwing ValueError, stating the Item object must be an instance of Item.

Sorry for the curtness of this, but I am sick to death of this project in particular, and most of the projects where a lot of the build is supplied - and if someone comments that part of a developers job is working with other people code, I am never going to do that, not ever, for I fear I would do myself harm!

Thanks in advance

James

3 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Well, most of a developer's job is working with someone else's code. I mean, someone else wrote Python. Someone else wrote Django and Flask. And if you're working on a team, you'll always be looking at code written by someone else. So...hate to break it to you, but you can't get away from other people's code :D.

Can you share your code and the exact error message?

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! In all likelihood the best way to get help on this sort of question is from the Techdegree #slack channel you were given access to when starting your Techdegree as only other Python Techdegree students and Staff can view the project files and confirm suspicions of database corruption.

I hope you get it sorted out! :sparkles:

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

That's really odd James McCombie ! If I look on this informational page under the "We're in this together" section it explicitly mentions the exclusive slack community for your Techdegree. I was sent an invitation to the iOS slack team immediately after joining the program. Is it possible that the invitation is in your spam folder somewhere? If you can't locate it, you might need to contact Support as the Slack community mentioned is likely to give you better answers more quickly! :sparkles:

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Sorry! I've been informed that the #slack team is not available for all pricing plans of the Techdegree and you may very well be on a plan that doesn't cover that particular feature. So please ignore this answer. :smiley:

That being said, I sincerely wish you the best of luck! :sparkles: