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!
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
Tim Wicks12,144 Points
Import models not working: module 'scorekeeper.serializers' has no attribute 'models'
My code: from scorekeeper.models import *
from scorekeeper.models import Game, Player, Score from rest_framework import serializers
Alex KoumparosPython Development Techdegree Student 36,886 Points
Looking at the question, it is not asking you to import everything from
scorekeeper.models nor is it asking you to import
It is asking you to:
(which you have correct) and:
modelsfrom the current app.
(where your problem is). Remember, the current app is called
scorekeeper. and the module you are importing is
Hope that points you in the right direction.