MasoniteFramework / exceptionite

A Python Exception Library. Designed to make handling and displaying exceptions a cinch.
MIT License
124 stars 4 forks source link

Add Django contexts and Django Renderer #27

Closed josephmancuso closed 2 years ago

josephmancuso commented 2 years ago

Just need to add Django contexts that are on the current Django exception page. This will put it at feature parity with the current exception screen

Screen Shot 2022-04-14 at 6 03 39 PM Screen Shot 2022-04-14 at 6 03 33 PM Screen Shot 2022-04-14 at 6 03 23 PM Screen Shot 2022-04-14 at 6 03 17 PM Screen Shot 2022-04-14 at 6 03 10 PM Screen Shot 2022-04-14 at 6 03 02 PM Screen Shot 2022-04-14 at 6 02 54 PM
girardinsamuel commented 2 years ago

How to fetch those variables and context is detailed here https://github.com/django/django/blob/b1005c0e4029c23f4e718ce0a7afdfa926c095de/django/views/debug.py#L356

It would be good to create different blocks for this, or one block with sections 😉 (has_sections = True in the block) https://github.com/MasoniteFramework/exceptionite/#block