Django Template Partials Guidance

@carltongibson
Dear Sir,

I am an aspiring GSOC 2025 contributor and have been exploring Django’s codebase. Among the various projects I reviewed, django-template-partials particularly stood out to me due to its potential impact.
From my perspective, integrating template partials into Django’s core could enhance the framework’s templating capabilities. I wanted to understand your perspective on this—how do you see the role of partials within Django? What is their future in the framework, and how do you envision their development?

Additionally, I would greatly appreciate any advice on how to strengthen my proposal to follow in addition to summing up the concept behind partials and template tags in django-core and improve my chances of contributing to this project through GSOC
Looking forward to your insights.

Hi @YogyaChugh.

Start with the tracking issue on template-partials:

Then I’d look at the code both there and in Django, to get clear on how it works, and what’ll be needed to move it into Django.

Make sure you can build Django’s docs, run its tests etc. See the general advice for getting started with Django:

Then probably the best place to follow up is on the template-partials repo.

Welcome aboard! :sailboat:

Thanks for the guidance, sir! I’ll go through the tracking issue, understand the code, and will make sure to brush up the basics. Looking forward to contributing.

1 Like

No worries.

Please don’t call me “sir”. :slightly_smiling_face: “Carlton” is better.

2 Likes

I’d also recommend checking out @carltongibson ’s talk! https://www.youtube.com/watch?v=cLHVM31Rv6A

django-template-partials is covered at about the 20 minute mark, but everything is good context.

1 Like

Thanks for sharing!
I will go through it for sure

Hi @carltongibson and @adamchainz

Hope you’re doing great! I’ve been working on my draft proposal for GSoC 2025 and thought of sharing it with you for comments as you both have guided me before. Here is the Docs Link.

I’d greatly value any suggestions, enhancements, or feedback you can provide. I’d like to make sure that the proposal meets the project expectations and goals well. Let me know if there’s anything that I can make more specific or improve.

Thanks so much for your time and feedback—I really appreciate your input!

Looking forward to hearing your thoughts.

Hi @YogyaChugh

Looks like a good start. A few observations:

  • No mention of a migration guide for existing users. That should probably live in the template-partials repo, but exact steps for moving from the third-part to built-in solution should be made.
  • All of the “New Ideas for Enhancement” are out of scope. Any such should be pursued in a third-party app, not as additions to this project.
  • Exact documentation examples to be added is an open question. I don’t think adding extensive HTMX examples would appropriate (for example).
  • This phrase: “Ensure compatibility with Django’s template rendering engine and security model” — If that means anything, you should spell it out.
  • There’s no real timeline specified.

Overall the proposal is a bit high-level. It’s fine, but it doesn’t really demonstrate that you’re on top of the finer details. I think if you keep working it you can add those. (Likely this is needed to provide a realistic timeline for the project.)

Hope that helps.

Thanks so much for your feedback! I really appreciate the detailed insights—it’s very helpful.

I’ll take some time to carefully refine the proposal based on your suggestions, ensuring it’s more detailed and well-structured. Once I’ve incorporated the necessary improvements, I’ll share an updated version for further feedback.

Thanks again for your time and guidance!

Just to let you know, I don’t have capacity for repeated reviews.

Totally understand, and I really appreciate the time you’ve already given me. Thanks!

@YogyaChugh
I posted a note for GSoC prospects here:

Checked out ! Thanks for sharing

1 Like

Hi @YogyaChugh
Check out this post: GSoC 2025 Proposal: Integrating django-template-partials into Django Core
He is also preparing for the Django-partial-template Idea. I hope you will get some idea on the approach.

1 Like

Hi @adyaprasad
Thanks for sharing dude
I now got a better idea on how the final proposal might seem. Would mix up Mr. Carlton’s advice, my DTL knowledge and insights from the proposal to try achieving the final one :crossed_fingers:.
This really helps :blush:
Btw which idea are u working on ?? Hope I could be of any help !

Happy that you find it helpful
For my idea, please check out this post and mention ticket: Question about the CORS & CSP GSoC Project Availability - #5 by adyaprasad

Check it, I would be happy if you could make any positive suggestions.

Initially I was going for django-template-partial idea but I dropped it because I found myself more profound in Configurable Content Type Parsing.

Do you prepare your proposal?

I don’t have much idea about it but will surely look into this, and try to give as much insights i can

I needed. Mutual collaboration and growth with the best.
Please read my post regarding my concern and make your suggestion Django Configurable Content Type Parsing Idea Ticket and Initial Phase Contribution

Hi @adyaprasad
Sorry for you cause the idea got cancelled !
But no need to worry !
You still got about 11 days ,
Try to go for some other idea and something that actually interests you so that it’s faster and easier to go for ! Or even you could propose your own idea if you feel otherwise
Whatever you choose, feel free to contact !