Case Study:
German Pellet Institute
Operation, further development and modernisation of a djangoCMS multisite for the German Pellet Institute
Customer
The German Pellet Institute (DEPI) brings together communications, information, public relations and marketing related to heating with wood pellets. As a centre of expertise for policymakers, industry, trade and consumers, DEPI has developed the ENplus certification scheme, among other things.
DEPI operates several websites for different audiences: depi.de, depv.de, enplus-pellets.de, enplus-hackschnitzel.de and besser-mit-pellets.de. All five sites run on a shared web application built with Django and djangoCMS. The platform also includes a company database for managing certified companies, locations, products and brands across the different websites.
Project
After another service provider completed a relaunch, it stopped supporting the platform. DEPI therefore needed a partner who could take over the operation at short notice and continue improving the application both technically and functionally.
CosmoCode took over the project in medias res: the handover came without Git history or much documentation, and the previous provider was still hosting a complex multisite application. In addition to hosting and support, CosmoCode had to review the codebase, improve its security and make it easier to maintain. The ongoing work combines day-to-day support with further development and a steady reduction of technical debt.
Implementation
Taking over hosting without prolonged downtime
CosmoCode migrated the entire platform to its Kubernetes infrastructure at Hetzner. The five websites now use automated deployments, a redundant PostgreSQL database, Redis caching, monitoring and dedicated media delivery through an nginx-s3-gateway proxy. Media files moved from AWS S3 to S3-compatible object storage in infrastructure located in Germany. CosmoCode also set up mail delivery and staging environments.
The migration ran alongside the existing system, without prolonged downtime. It also fixed filename issues involving German umlauts that had made some files unreliable to access in the old storage.
Analysis and secure modernisation
Although the application had only recently been rebuilt, it already showed obvious technical and structural problems. CosmoCode therefore treated it like a legacy application. Rather than risk a complete rewrite, the team first analysed the system as a whole and then worked inward, modernising it step by step. This preserved existing functionality while allowing improvements to be introduced safely in production.
The systematic analysis showed that the problems went far beyond a few isolated bugs. Multiple cache layers, duplicated modules, inconsistent site logic and missing tests made the system difficult to maintain. There were also risks involving consent management, external resources and access to non-public files.
CosmoCode first addressed the most urgent issues: Google Fonts are now served locally, Google Maps has been replaced with a privacy-friendly mapping solution, and YouTube consent is handled in the browser. Protected document delivery was redesigned so that private files are stored separately and served only after a permission check with a short-lived access token.
CosmoCode also rebuilt the consent banner. The lean, self-hosted solution loads external services only after the user has given consent and supports DEPI’s consent categories. The new version went live in time for an online campaign, with the implementation coordinated closely with the tracking agency.
ENplus company database
The company database was the largest project, both in scope and technical complexity. The historical data model spread locations, certificates, brands and products across numerous partially redundant tables. New requirements from the certification handbook — including multiple locations, certification-related activities, quality classes and different types of dealers — were difficult to represent cleanly.
Together with DEPI, CosmoCode developed a clearer model built around companies, locations, certificates, products and product images. An automated migration transferred the existing data without manual re-entry. Automated checks helped correct duplicate addresses and cases where postal codes and towns had been mixed up.
The different websites now share a frontend with reusable components and a dedicated style system. Shared functionality is maintained centrally, while each site retains its own colours and visual identity. Both the new company database and the specialist dealer search support distance-based searches for the nearest location.
Performance, support and search
One focus of the ongoing work was to stabilise caching and database access. This included fixing faulty cache keys, empty cached search results, problems caused by database restarts and unnecessary requests to object storage. A targeted change now keeps djangoCMS from treating pages as ordinary content pages after a database failover. Manual cache clearing is no longer required.
The impact is measurable: the homepage now responds significantly faster, and the editorial interface is easier to use.
CosmoCode also introduced a new full-text search. It uses the existing PostgreSQL database instead of a separate search server and covers the content of all the websites. It handles German umlauts, common spelling variants, singular and plural forms and typos. Results include previews and can be filtered by area. The search respects visibility rules and group permissions, while editors can manage synonyms, relevance weighting and exclusions themselves.
The application is also being modernised incrementally. CosmoCode has removed obsolete dependencies and duplicate modules, updated Django and prepared the platform for predefined content modules and an upgrade to django CMS 5. The platform stays online throughout this process and becomes clearer, more secure and easier to maintain with every iteration.
We can also implement your project!
Do you want to implement a similar project? Or do you have a completely different idea? Talk to us and we will find the best solution together.