Initial commit: Django gallery project

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 16:47:17 +08:00
commit 8b57a7b66a
53 changed files with 3633 additions and 0 deletions

36
.env.example Executable file
View File

@@ -0,0 +1,36 @@
# Django Settings
DEBUG=True
SECRET_KEY=your-secret-key-here-change-in-production
# Database
DATABASE_URL=sqlite:///db.sqlite3
# Email Settings (optional)
EMAIL_HOST=localhost
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
# Security Settings (for production)
# ALLOWED_HOSTS=yourdomain.com,www.yourdomain.com
# CSRF_TRUSTED_ORIGINS=https://yourdomain.com,https://www.yourdomain.com
# File Upload Settings
FILE_UPLOAD_MAX_MEMORY_SIZE=5242880
DATA_UPLOAD_MAX_MEMORY_SIZE=5242880
# Image Settings
IMAGE_MAX_WIDTH=1920
IMAGE_MAX_HEIGHT=1080
THUMBNAIL_SIZE=400
# Site Settings
SITE_NAME="YITAO-REN GALLERY"
COPYRIGHT_TEXT="© 2026 Yitao-Ren Gallery & iTao TV"
# Timezone
TIME_ZONE="Asia/Shanghai"
# Language
LANGUAGE_CODE="zh-hans"