Python Using Databases in Python Meet Peewee First Queries

Brian Wilkes
Brian Wilkes
4,731 Points

can't figure out the easiest thing lol

can't import this...( i will use this to find out the answer)

1 Answer

Maxwell Newberry
Maxwell Newberry
7,678 Points
from models import Challenge

Not exactly sure where your problem lied but to break this down quickly, notice a few things:

  • 1) from models - we don't include the .py because it assumes that already.
  • 2) Since we already stated where we are getting this part from we simply say import then the class we are imported from the previously stated Python file.

Good luck!