# Discussion on Configurable Content Type Parsing Project

**URL:** <https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865>\
**Category:** Google Season of Code\
**Created:** [February 15, 2023, 8:48pm UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865 "2023-02-15T20:48:43Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [March 2, 2023, 9:10am UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865/21 "2023-03-02T09:10:39Z")

</div>

Hey @udbhavsomani — that all looks about right for scope yes.

> [@udbhavsomani](#):
>
> - Create a new parser class that will check for the `content-type` of the request object and try to return parsed python object(s).
> - This can be activated by adding it as a middleware? can be there by default as well.
> - A fallback to the default parser if this middleware class does not return any compatible parser.

`HttpRequest` should have a default list of parsers.

Users could customise that at any time before accessing `request.data`… — so by overriding the request class in the handler, a middleware, in `View.setup()`, in the view function itself, … Documenting (and testing) the middleware approach is likely the main one to consider. (So, Yes 🙂 )

Looking forward to your proposal!

Kind Regards,

Carlton

---

<div class="post-metadata">

**Author:** ![udbhavsomani](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/udbhavsomani/32/12210_2.png) [@udbhavsomani](https://forum.djangoproject.com/u/udbhavsomani)\
**Post date:** [March 6, 2023, 5:30am UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865/22 "2023-03-06T05:30:20Z")

</div>

Hey @carltongibson!  
I am done with my initial draft of the proposal. Should I share it here for an early review? It would be really helpful if you could review it and lemme know of any pointers that I might need to refine in it.

Thanks & Regards,

Udbhav

---

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [March 8, 2023, 8:05am UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865/23 "2023-03-08T08:05:11Z")

</div>

Hey @udbhavsomani — you can send it to me. Happy to glance over it.

---

<div class="post-metadata">

**Author:** ![udbhavsomani](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/udbhavsomani/32/12210_2.png) [@udbhavsomani](https://forum.djangoproject.com/u/udbhavsomani)\
**Post date:** [March 8, 2023, 8:57am UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865/24 "2023-03-08T08:57:28Z")

</div>

[Django Proposal - GSoC '23 - Google Docs](https://docs.google.com/document/d/1Y9WtcdUQYghVhu9Dkh4QOP_wlZib1e9Bzsw-mHMvpes/edit#)

Hi, @carltongibson, please let me know what you think!

Thanks a ton!

Regards,  
Udbhav

---

<div class="post-metadata">

**Author:** ![udbhavsomani](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/udbhavsomani/32/12210_2.png) [@udbhavsomani](https://forum.djangoproject.com/u/udbhavsomani)\
**Post date:** [March 20, 2023, 12:34pm UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865/25 "2023-03-20T12:34:34Z")

</div>

Hey @carltongibson! The proposal submission starts today. It would be really great if you can give me a heads up on my proposal and any corrections that you think would be helpful.

Thanks & Regards,  
Udbhav Somani

---

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [March 23, 2023, 7:59am UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865/26 "2023-03-23T07:59:05Z")

</div>

Hi @udbhavsomani — sorry for the slow reply. _Life_.

Do submit. The proposal looks good. (There will always be details to be determined later — the purpose at this point is to demonstrate that you have a firm grasp on the issue.)

Kind Regards,

Carlton

---

<div class="post-metadata">

**Author:** ![udbhavsomani](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/udbhavsomani/32/12210_2.png) [@udbhavsomani](https://forum.djangoproject.com/u/udbhavsomani)\
**Post date:** [March 25, 2023, 3:59am UTC](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865/27 "2023-03-25T03:59:56Z")

</div>

Thanks a ton @carltongibson!

[Previous page](https://forum.djangoproject.com/t/discussion-on-configurable-content-type-parsing-project/18865.md?page=1)
