Add daily-stone page showing a different mineral each day
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
New dailystone app with 207 minerals scraped from Wikipedia. Each day displays a different mineral with photos, formula, properties, description, and history. Page theme color matches the mineral's typical appearance. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
python manage.py migrate --noinput
|
||||
|
||||
# Load mineral data if the table is empty
|
||||
python manage.py shell -c "
|
||||
from dailystone.models import Mineral
|
||||
if Mineral.objects.count() == 0:
|
||||
from django.core.management import call_command
|
||||
call_command('loaddata', 'minerals')
|
||||
print(f'Loaded {Mineral.objects.count()} minerals')
|
||||
else:
|
||||
print(f'{Mineral.objects.count()} minerals already loaded')
|
||||
"
|
||||
|
||||
exec gunicorn kboris.wsgi:application \
|
||||
--bind 0.0.0.0:8080 \
|
||||
--workers 2 \
|
||||
|
||||
Reference in New Issue
Block a user