Skip to content

Django debug#682

Merged
batpad merged 1 commit intodevelopfrom
django-debug
Jun 9, 2020
Merged

Django debug#682
batpad merged 1 commit intodevelopfrom
django-debug

Conversation

@batpad
Copy link
Copy Markdown
Collaborator

@batpad batpad commented Apr 24, 2020

Adds the django debug toolbar while in development mode. This is especially useful to inspect SQL queries generated by an API end-point and optimize where necessary.

Changes

  • Adds django-debug-toolbar to dependencies
  • Configure setup in settings and URLs

Checklist

Things that should succeed before merging.

  • Verify debug toolbar works locally
  • Verify it will not change anything in production

@thenav56 would be great if you could see and approve this one.

cc @GregoryHorvath

@batpad batpad changed the base branch from master to develop April 24, 2020 16:43
@thenav56
Copy link
Copy Markdown
Member

@batpad Everything looks good.

Just out to point out, since we are using docker this might not work for local development.

INTERNAL_IPS = ['127.0.0.1']

You can get the host IP using ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+'

@batpad batpad merged commit 66655b4 into develop Jun 9, 2020
@thenav56 thenav56 deleted the django-debug branch August 14, 2020 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants