title: Custom user in django raises ValueError
body: <p>Even this simple example throws a <code>ValueError: Dependency on app with no migrations: myApp</code> during <code>python manage.py syncdb</code></p>
  
  <p><strong>myApp/models.py</strong></p>
  
  <pre><code>from django.contrib.auth.models import AbstractUser
  
  class User(AbstractUser):
      pass
  </code></pre>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>AUTH_USER_MODEL = 'myApp.User'
  </code></pre>
  
  <hr>
  
  <p>Running <code>./manage syncdb</code> in django==1.6.5 <strong>&lt;&lt; works</strong></p>
  
  <pre><code>Creating tables ...
  </code></pre>
  
  <p>Running <code>./manage syncdb</code> in django==1.7 <strong>&lt;&lt; breaks</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "manage.py", line 10, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
      utility.execute()
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
      self.execute(*args, **options.__dict__)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
      output = self.handle(*args, **options)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/base.py", line 533, in handle
      return self.handle_noargs(**options)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 27, in handle_noargs
      call_command("migrate", **options)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 115, in call_command
      return klass.execute(*args, **defaults)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
      output = self.handle(*args, **options)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 63, in handle
      executor = MigrationExecutor(connection, self.migration_progress_callback)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/db/migrations/executor.py", line 17, in __init__
      self.loader = MigrationLoader(self.connection)
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 48, in __init__
      self.build_graph()
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 239, in build_graph
      parent = self.check_key(parent, key[0])
    File "/Users/bdhammel/Documents/web_development/tutorials/python_social_auth/env/lib/python2.7/site-packages/django/db/migrations/loader.py", line 163, in check_key
      raise ValueError("Dependency on app with no migrations: %s" % key[0])
  ValueError: Dependency on app with no migrations: myApp
  </code></pre>
  
  <p>I haven't been able to find anything in the documentation for 1.7 that says this should be done any differently that 1.6. It does look like some other people have had <a href="https://code.djangoproject.com/ticket/23366" rel="nofollow">this problem too</a>, but as a result from running <code>./manage.py migrate --list</code>   </p>
  
  <p>Has anyone encountered this?</p>