create sitemanagement project and dynamic faqs

This commit is contained in:
2025-05-15 19:34:32 +03:00
parent 8e3dfd89b1
commit fd5caada23
18 changed files with 317 additions and 51 deletions

View File

@@ -0,0 +1,14 @@
from django.db import models
class FAQ (models.Model):
title = models.CharField(max_length=250)
content = models.CharField(max_length=800)
class Meta:
verbose_name = 'FAQ'
verbose_name_plural = 'FAQs'
ordering = ['id']
def __str__(self):
return self.title