skip to Main Content

Html – Unable to create custom user in django

Here is my models.py file from django.db import models from django.utils import timezone from django.contrib.auth.models import UserManager,AbstractBaseUser,PermissionsMixin # Create your models here. class CustomUserManager(UserManager): def _create_user (self, email,password, **extra_fields): if not email: raise ValueError('Please provide a valid email') email= self.normalize_email(email)…

VIEW QUESTION

Html – media query js not apply when resizing width screen and click the link

So this is my code const mediaQ = window.matchMedia("(max-width:500px)") mediaQ.addEventListener("change", function(){ if(mediaQ.matches){ document.getElementById("box").style.backgroundColor = "blue" } else{ document.getElementById("box").style.backgroundColor = "red" } }) #box{ height: 20rem; width: 20rem; background-color: red; } <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…

VIEW QUESTION
Back To Top
Search