Tijani-Dia / dj-tracker

A Django app that tracks your queries to help optimize them. Demo: https://dj-tracker-bakerydemo.fly.dev/dj-tracker/
https://tijani-dia.github.io/dj-tracker/
BSD 3-Clause "New" or "Revised" License
79 stars 3 forks source link

Use relative paths when working filenames #4

Closed Tijani-Dia closed 1 year ago

Tijani-Dia commented 1 year ago

Using the absolute file path in tracebacks will result in different model instances being created when the tracker is run on different machines or using a locally installed package for example, although they represent the same file for our purposes.

The goal of this PR is to use the relative path when creating traceback entries.