You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Arne Schauf 207bdbc6ce Enhance event card layouts, timeline styles, and add template tests 3 weeks ago
core Enhance event card layouts, timeline styles, and add template tests 3 weeks ago
feo_homepage Fix ALLOWED_HOSTS entries in production settings 1 year ago
.gitignore Refactor event calendar HTML and integrate Bootstrap CSS 1 year ago
Dockerfile add basic project setup 1 year ago
README.md Refactor slides to use StreamField in EventPage and HomePage 1 year ago
docker-compose.dev.override.yml Remove unused volumes from production and add them in overrides 1 year ago
docker-compose.prod.override.yml Add db network configuration for Django service in production override 3 weeks ago
docker-compose.yml Remove unused volumes from production and add them in overrides 1 year ago
manage.py add basic project setup 1 year ago
requirements.in Add IPython support and fix event end date in iCal export 3 weeks ago
requirements.txt Add IPython support and fix event end date in iCal export 3 weeks ago
update_prod.sh Add deployment script for production updates 3 weeks ago

README.md

HomePage Slides Refactoring

This change refactors the slides on the HomePage to use a StreamField instead of individual fields for each slide. This makes the slides more flexible and allows for an arbitrary number of slides.

Changes Made

  1. Added a new slides StreamField to the HomePage model
  2. Updated the HomePage content panels to include the new StreamField
  3. Updated the home_page.html template to render the new StreamField slides
  4. Created a migration for the changes to the HomePage model

Data Migration

The existing slide fields are still available for backward compatibility, but they are marked as deprecated. The template will first check for the new StreamField slides, and fall back to the legacy fields if the StreamField is empty.

A data migration has been integrated into the Django migration system to automatically transfer existing data from the legacy slide fields to the new StreamField. When you run the migrations, the system will:

  1. Add the new slides StreamField to the HomePage model
  2. Automatically migrate any existing data from the legacy slide fields to the new StreamField
  3. Preserve the legacy fields for backward compatibility

This means you don't need to manually migrate the data - it's handled automatically by the migration system.

After confirming that all data has been successfully migrated and that the new StreamField is working correctly in production, you can remove the legacy fields from the HomePage model in a future update.