init commit

This commit is contained in:
2025-05-06 20:44:33 +09:00
commit 91f0d54563
5567 changed files with 948185 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from django.db import models
from django.conf import settings
class DesignSettings(models.Model):
user = models.OneToOneField(
settings.AUTH_USER_MODEL,
on_delete=models.CASCADE,
related_name='design'
)
theme_color = models.CharField(max_length=7, default='#ffffff')
background_image = models.ImageField(upload_to='backgrounds/', null=True, blank=True)
font_family = models.CharField(max_length=100, default='sans-serif')
custom_css = models.TextField(blank=True)
updated_at = models.DateTimeField(auto_now=True)
def __str__(self):
return f"Design for {self.user.username}"