qgis / qgis-feed

QGIS Welcome Page News Feed Backend
2 stars 7 forks source link

Upgrade to Django 4 to fix OL map #61

Closed Xpirix closed 10 months ago

Xpirix commented 10 months ago

I suspected mismatched Django versions between my local and the production environment. I noticed that the OpenLayers map in the Set spatial filter modal doesn't show when using Django 3. I've tried the current and the last patched version (3.2.11 and 3.2.23). It works fine after upgrading to Django 4.2.8.

Changes summary:

Requirement:

Please find below the screenshot of the Set spatial filter modal when using Django 4:

image

haubourg commented 10 months ago

Cool thanks! In the long run a dockerised dev environment can help to have the same env as the server has.

Go for merge !

Xpirix commented 10 months ago

My pleasure.

You're right, having a dockerized development environment helps mirror the server environment and is easy to run. Thanks for the tip.

Xpirix commented 9 months ago

Upgrading to Django 4 involves upgrading other stacks on the server side (PostGIS, docker engine...) and may cause downtime so we need to plan it correctly. For now, I will try another method to fix the map in the spatial filter window.