Django Template Delocalized

screenshot of Django Template Delocalized

POC for Decoupled Template Rendering in a Django Application

Overview

The repository contains a proof-of-concept (POC) that explores the decoupling of template rendering from a primary Django application. The goal is to separate the template rendering portion of the application into a separate app, while still maintaining access to the models and objects of the primary app. The POC demonstrates the core idea but is not a pip installable library.

Features

  • Decoupling Template Rendering: The POC aims to detach the template rendering part of a Django app from the primary app, allowing for separate development and deployment of templates.
  • Seamless Communication Channel: The POC establishes a communication channel between the primary app and the separate app for rendering templates, allowing the separate app to retrieve context objects from the primary app.
  • Shared Database and Cache Backend: Both the primary and separate apps use the same Postgres database and Redis cache backend for seamless integration.

Summary

This POC explores the decoupling of template rendering from a primary Django app by creating a separate app for rendering templates. The communication between the two apps is achieved through a shared database and cache backend. The POC demonstrates the concept but is not a ready-to-use library.