title: Apps with label XYZ could not be found
body: <p>today I ran into an error and have no clue how to fix it.</p>
  
  <pre><code>Error: App with label XYZ could not be found. Are you sure your INSTALLED_APPS setting is correct?
  </code></pre>
  
  <p>Where XYZ stands for the app-name that I am trying to reset. This error shows up every time I try to reset it (<code>manage.py reset XYZ</code>). Show all the sql code works.</p>
  
  <p>Even <code>manage.py validate</code> shows no error.</p>
  
  <p>I already commented out every single line of code in the models.py that I touched the last three months. (function by function, model by model) And even if there are no models left I get this error.</p>
  
  <p>Here <a href="http://code.djangoproject.com/ticket/10706" rel="nofollow noreferrer">http://code.djangoproject.com/ticket/10706</a> I found a bugreport about this error. I also applied one the patches to allocate the error, it raises an exception so you have a trace back, but even there is no sign in what of my files the error occurred.</p>
  
  <p>I don't want to paste my code right now, because it is nearly 1000 lines of code in the file I edited the most.</p>
  
  <p>If someone of you had the same error please tell me were I can look for the problem. In that case I can post the important part of the source. Otherwise it would be too much at once. </p>
  
  <p>Thank you for helping!!!</p>