3.Configuración y mantenimiento........................................................................................
3.1 Models.py.....................................................................................................................
from django.db import models
class Usuario(models.Model):
nombre = models.CharField(max_length= 100 )
apellido_paterno = models.CharField(max_length= 100 )
apellido_materno = models.CharField(max_length= 100 , blank=True)
email = models.EmailField(unique=True)
telefono = models.CharField(max_length= 15 )
password = models.CharField(max_length= 128 )
def str(self):
return f"{self.nombre} {self.apellido_paterno}"