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 trialAdrian Diaz
3,500 Pointsfrom peewee import *
When I was completing an objective i tried to import peewee like this: import peewee
I got an error that it must be written like so: from peewee import *
To my knowledge there is no difference in the two.
Why am I being told to try again.
Can someone please explain the meaning of this?
1 Answer
Megan Amendola
Treehouse TeacherHere's a great answer from Chris: https://teamtreehouse.com/community/if-we-import-everything-from-peewee-why-dont-we-just-import-peewee
For code challenges, if it asks you to import peewee, it will most likely be looking for from peewee import *
unless otherwise stated since that is the way it was taught.