ValueError: Dependency on app with no migrations: customuser

Submitted 4 years, 6 months ago
Ticket #193
Views 725
Language/Framework Django
Priority Medium
Status Closed

Trying to start a webpage using the Django framework. 

After creating the project, I tried to start an app that utilizes customized users and registration with email validation using django-registration.

This is what happened when I ran manage runserver:

enter image description here

This is what 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"))
Submitted on Oct 04, 20
add a comment

1 Answer

Verified

Run manage.py makemigrations customuser to create the migrations for your CustomUser app.

Also,  run any of the existing migrations - to do manage.py migrate.

Submitted 4 years, 6 months ago


Latest Blogs