Closed fchabouis closed 11 months ago
The admin panel error appears as soon as I set DRF_API_LOGGER_DATABASE = True
.
If I set it to False
, I can access the admin page, but there is no information related to drf_api_logger.
Did you migrate after setting to DRF_API_LOGGER_DATABASE = True?
I don't rememeber if I migrated after or before setting DRF_API_LOGGER_DATABASE.
I have tried drf-api-tracking instead and got the same problem with the admin page, so I knew the problem with the admin page was not coming from your package.
Finally I found that one of my previously installed_app was somehow preventing me from adding an app that was adding something on the admin page.
The solution for me was to add drf_api_logger in the INSTALLED_APP before the problematic application in the list. I didn't know the order of the list was important.
As I finally found the solution while playing with the other plugin, I will stick with the other one. But thank you for your answer, and I hope this issue will help if someone encounters the same problem.
Have a good day!
Hello, I followed the instructions given on the readme, but get a broken admin page with the following error:
Additionnal details: I have installed the drf_api_logger extension with pip I have added it in the installed app and as a middleware. I have added in settings.py some flags. I have run the migrations and the drf_api_logs table has been created in the DB.
However, when I make an API call, nothing is logged. The admin page is broken with a NoReverseMatch error.
Here is my settings.py file:
Is there anything obvious I'm missing? Thanks!