You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
493 B

from django.db import models
from django.core.files.storage import FileSystemStorage
import os
from ckeditor.fields import RichTextField
# Create your models here.
class tb_news(models.Model):
news_title = models.CharField(max_length=300)
#news_detail = models.TextField(default='')
news_detail = RichTextField(blank=True,null=True)
news_photo = models.ImageField(upload_to='photo',default='')
news_date = models.DateTimeField(auto_now=True,blank=False)