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
80 stars 3 forks source link

initial migration runs successfully, but no django_tracker tables get added #31

Open mrchameleon opened 6 months ago

mrchameleon commented 6 months ago

Hello, I am trying to install django tracker, and when the command to do the initial migration is run, I get this output but no django tracker app-specific tables get added like they should.

python manage.py migrate dj_tracker

(0.001) INSERT INTO "django_migrations" ("app", "name", "applied") VALUES ('dj_tracker', '0001_initial', '2024-04-25 22:27:25.947142+00:00'::timestamptz) RETURNING "django_migrations"."id"; args=('dj_tracker', '0001_initial', datetime.datetime(2024, 4, 25, 22, 27, 25, 947142, tzinfo=datetime.timezone.utc)); alias=default

.. everything else is select statements, no more inserts during migration process ... I would expect to see dj_tracker_request tables getting created in my sql logging output, and see the created tables after this runs, but are not created.

My app does use django_tenants library, I don't know if that could be a cause of this, but as far as I can tell, it doesn't seem to be getting in the way.

Tijani-Dia commented 2 months ago

Hey @mrchameleon, have you followed all the steps in https://tijani-dia.github.io/dj-tracker/installation/?

If so, then you need to run the app and make some queries then you'll see the trackings on the web dashboard.