Re: Dropdown

2020-11-09 Thread Derek
Look at Django's select widgets: https://docs.djangoproject.com/en/3.1/ref/forms/widgets/#select If you want a dynamic search type of widget, you'll need a javascript-based approach; for example: https://django-autocomplete-light.readthedocs.io/en/master/ On Thursday, 5 November 2020 at 16:06:

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-09 Thread Marc Johnson
Hi David, Thanks again for the input. I havent quite figured it out yet but I appreciate the help! Best, Marc On Thu, Nov 5, 2020 at 8:02 AM David Nugent wrote: > > > On 5 Nov 2020, at 04:11, Marc Johnson wrote: > > Hi David, > > Thanks again for the feedback. When I remove the 'ENGINE' varia

Questions about code coverage.

2020-11-09 Thread Christopher Keith
Folks- I ran coverage and massaged the data a bit to get a better idea what areas weren’t covered. Here is a Google Sheet with the results, sorted by coverage% low-to-high. It looks like t

Re: Questions about code coverage.

2020-11-09 Thread Simon Charette
Hello Chris, > It looks like the gis files aren't covered. Is there any way to run tests and coverage on this code? The tests for these files won't be run unless you run the suite with a GIS enabled database backend. We do it on CI (https://djangoci.com/view/%C2%ADCoverage/) but you can do th

Tests: How to messages.add_message() before self.client.get() ?

2020-11-09 Thread Carsten Fuchs
Dear group, in my tests I would like to test the processing of messages in the view. For example: def test_is_message_properly_handled(self): # The problem: We have no `request` here! messages.info(request, 'Hello') response = self.client.get("/handling-messages-view/