Using Databases in Python
How do I import this model/class?
from models.py import Challenge
#from app import models
#from app.models import mymodel
you don't need to include .py just writing models is enough as python knows you are working with .py files
from models import Challenge
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.