22 lines
1.0 KiB
Python
22 lines
1.0 KiB
Python
from django.db import models
|
|
|
|
# Create your models here.
|
|
class Seo(models.Model):
|
|
id = models.AutoField(primary_key=True)
|
|
text = models.CharField(max_length=200, help_text='введите текст')
|
|
email = models.EmailField(help_text="введите Email")
|
|
blank = models.TextField(blank=True, null=True)
|
|
image = models.ImageField(default=True)
|
|
|
|
|
|
class KupiZabor(models.Model):
|
|
title = models.CharField(max_length=200)
|
|
content = models.TextField()
|
|
url = models.CharField(max_length=200) # URL страницы
|
|
meta_title = models.CharField(max_length=200, blank=True, null=True) # Мета-тег Title
|
|
meta_description = models.TextField(blank=True, null=True) # Мета-тег Description
|
|
keywords = models.CharField(max_length=200, blank=True, null=True) # Ключевые слова
|
|
is_indexed = models.BooleanField(default=True) # Показывать ли страницу в поисковых системах
|
|
|
|
def __str__(self):
|
|
return self.title |