Starting Django ORM model
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
# 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")
|
||||||
|
|||||||
Reference in New Issue
Block a user