change front_web_view
This commit is contained in:
28
core/migrations/0005_siteconfig.py
Normal file
28
core/migrations/0005_siteconfig.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 5.1 on 2025-10-28 01:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0004_crawltask_execution_count_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='SiteConfig',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('site_title', models.CharField(default='绿美泉烟绿色课堂', max_length=200, verbose_name='网站标题')),
|
||||
('header_background_image', models.ImageField(blank=True, null=True, upload_to='site_config/', verbose_name='版头背景图片')),
|
||||
('header_background_color', models.CharField(default='#667eea', max_length=7, verbose_name='版头背景颜色')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
|
||||
('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': '网站配置',
|
||||
'verbose_name_plural': '网站配置',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user