ValueError: application dependency without migration: customuser

I am trying to launch a webpage using the Django framework. This is my first web development project.

After creating the project, I tried to run an application that uses configured users and registration with email verification using django-registration.

This is what happened when I launched manage runserver :

enter image description here

This is what the models.py file contains :

 from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import ugettext_lazy as _ class User(AbstractUser): username = models.CharField(max_length=255, unique=True, verbose_name=_("Username")) email = models.EmailField(unique=True, verbose_name=_("Email Address")) favorite_animal = models.CharField(max_length=255, verbose_name=_("Favorite Animal")) 
+13
source share
2 answers

You do not run manage.py makemigrations customuser to create migrations for your CustomUser application.

In addition, you did not perform any existing migrations - you must do manage.py migrate .

+31
source

try to reset the database, run makemigrations again and after the migration.

-3
source

All Articles