Starting Django ORM model
This commit is contained in:
parent
15462de08a
commit
0af4f8fb13
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue