Starting Django ORM model
This commit is contained in:
1 parent
15462de08a
commit
0af4f8fb13
1 file changed
+5
@@ -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