How to import a file in python?

Solution
export PYTHONPATH=$PYTHONPATH:/path/you/want/to/add
import sys
sys.path.insert(0, "/home/project-name/models")
from code.models import user