Skip to content

Developer Setup and Tips

Dave Lawrence edited this page Oct 14, 2020 · 3 revisions

Table of contents

Django debugging

https://django-debug-toolbar.readthedocs.io/en/latest/

James writes: If you wish to debug your SQL I've found the following works (whereas at the time of this writing other tools do not work with Django 2.2)

https://github.com/fcurella/django-querycount after installation make sure to add the required middleware entry

Also as that produces coloured output you'll want to add the following to LiClipse https://marketplace.eclipse.org/content/ansi-escape-console

SCSS

First install scss to /usr/bin, This may be done via

pip3 install libsass

(see https://sass-lang.com/libsass)

PyCharm

  • File -> Settings
  • Search for "watcher" or Tools -> Watchers
  • Add, "SCSS"
  • Add --style expanded to command line arguments, so that we don't get whitespace formatting changes fights between dev machines.

Eclipse

In Eclipse, when you change one of the 3 scss files it will automatically compile them to css. See Project Preferences, Builders and you can see SASS form SASS flags SASS global

You can create another build for a new scss file based off these if needed.

See Also

Clone this wiki locally