Starting Django ORM model

This commit is contained in:
David Doblas Jiménez 2022-01-04 12:19:14 +01:00
parent 15462de08a
commit 0af4f8fb13
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
from django.db import models
# Create your models here.
class Project(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
technology = models.CharField(max_length=20)
image = models.FilePathField(path="/img")