title: Having a ModuleNotFoundError! in Django
body: <p>i have this project where there is a Login app and there is a Homepage app. The project files look like this</p>
  <ul>
  <li><p>login</p>
  <ul>
  <li><p>homepage</p>
  <ul>
  <li>models.py</li>
  </ul>
  </li>
  <li><p>login</p>
  <ul>
  <li>settings.py</li>
  <li>urls.py</li>
  </ul>
  </li>
  <li><p>usersignup</p>
  <ul>
  <li>models.py</li>
  </ul>
  </li>
  <li><p>manage.py</p>
  </li>
  </ul>
  </li>
  </ul>
  <p>Here is usersignup/models.py
  '''
  from django.db import models</p>
  <pre><code>class UserDetail(models.Model):
      first_name = models.CharField(max_length=225)
      middle_name = models.CharField(max_length=255, blank=True, null=True)
      last_name = models.CharField(max_length=255)
      email = models.EmailField()
  
      def __str__(self):
          return self.first_name
  
  class WebDetail(UserDetail):
      # user = models.OneToOneField(UserDetail, on_delete=models.CASCADE, primary_key=True,)
      username = models.CharField(max_length=255)
      password = models.CharField(max_length=255)
  </code></pre>
  <p>'''</p>
  <p>and here is homepage/models.py</p>
  <p>'''</p>
  <pre><code>from django.db import models
  from login.usersignup.models import UserDetail
  
  
  
  class UploadProfilePicture(models.Model):
      caption = models.CharField(max_length=2000)
      image = models.ImageField(upload_to='images/')
  
  
  class Profile(models.Model):
      user = models.ForeignKey(UserDetail, on_delete=models.CASCADE)
  </code></pre>
  <p>'''</p>
  <p>and when i run
  '''</p>
  <pre><code>python manage.py check
  </code></pre>
  <p>'''
  i get this error</p>
  <pre><code>    Traceback (most recent call last):
    File &quot;manage.py&quot;, line 22, in &lt;module&gt;
      main()
    File &quot;manage.py&quot;, line 18, in main
      execute_from_command_line(sys.argv)
    File &quot;C:\Users\user\Documents\McDonald\Login\venv\lib\site-packages\django\core\management\__init__.py&quot;, line 401,
  in execute_from_command_line
      utility.execute()
    File &quot;C:\Users\user\Documents\McDonald\Login\venv\lib\site-packages\django\core\management\__init__.py&quot;, line 377,
  in execute
      django.setup()
    File &quot;C:\Users\user\Documents\McDonald\Login\venv\lib\site-packages\django\__init__.py&quot;, line 24, in setup
      apps.populate(settings.INSTALLED_APPS)
    File &quot;C:\Users\user\Documents\McDonald\Login\venv\lib\site-packages\django\apps\registry.py&quot;, line 114, in populate
  
      app_config.import_models()
    File &quot;C:\Users\user\Documents\McDonald\Login\venv\lib\site-packages\django\apps\config.py&quot;, line 211, in import_mod
  els
      self.models_module = import_module(models_module_name)
    File &quot;C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\importlib\__init__.py&quot;, line 127, in import_modul
  e
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 783, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;C:\Users\user\Documents\McDonald\Login\login\homepage\models.py&quot;, line 2, in &lt;module&gt;
      from login.usersignup.models import UserDetail
  ModuleNotFoundError: No module named 'login.usersignup'
  </code></pre>
  <p>so, is there any way i could import the UserDetail class in the usersignup/models to the homepage/models?</p>
  <p>Thanks for your contribution</p>