Created
July 30, 2019 23:00
-
-
Save parzibyte/7b87be8af880ad275e631e4a7aac98b1 to your computer and use it in GitHub Desktop.
Ejemplo de modelo para Django en Python - https://parzibyte.me/blog/2019/06/17/creando-aplicacion-web-django/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
# Create your models here. | |
class Gasto(models.Model): # Extiende de models.Model | |
fecha = models.DateField(auto_now_add=True) | |
descripcion = models.CharField(max_length=100) | |
monto = models.DecimalField(max_digits=12, decimal_places=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment