title: How to import models from one app to another app in Django?
body: <p>I am trying to reference a model (Person) from one app, in the views-file of another app. Unfortunately, I get an "unresolved reference"-error. Is it possible to reference models from other apps in Django? If so, what am I doing wrong?</p>
  
  <p>Let me demonstrate with an example:</p>
  
  <p>The image below shows my project. I am currently in the views.py (marked in green), in the app called "autocomplete". I want to reference a person-model in the file "models.py" (marked in red), that belongs to the app "resultregistration". However, I get the error "Unresolved reference Person", even though the class Person does exist in models.py</p>
  
  <p><a href="https://i.stack.imgur.com/clJXM.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/clJXM.jpg" alt="enter image description here"></a></p>
  
  <p>The file settings.py is in the athlitikos/athlitikos - folder, and manage.py is in only athlitikos (as seen in the image below)</p>
  
  <p><a href="https://i.stack.imgur.com/SMKwz.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/SMKwz.jpg" alt="enter image description here"></a></p>
  
  <p>Any help would be strongly appreciated!</p>
  
  <p><strong>Edit:</strong> I now tried running "from ..resultregistration.models import Person", because I saw that what I did in the screenshot was obviously wrong. However, then I get the error message " attempted relative import beyond top-level package"</p>
  
  <p>Thank you for your time!</p>