Hi Tom,

I managed to install from GIT and it worked, Thank you!

I would love to contribute with the demo. I clone the Django demo code and 
adapt/updated it, by copying code from 0.16.1 pygeo/django_/settings.py to the 
demo settings.py.

Regards,
Ivan

________________________________
From: Tom Kralidis <[email protected]>
Sent: Wednesday, April 3, 2024 6:33 AM
To: Ivan Lucena <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [pygeoapi] Django example

Hi Ivan: installation and supported distros can be found in [1].  Having said 
this, a pygeoapi release always releases to (at least) pip, conda, DockerHub, 
and UbuntuGIS.  We have a 0.17.0 release cheduled for mid June [2].

Contributions are always more than welcome [3], so please feel free to update 
and PR accordingly.

Thanks

..Tom


[1] https://docs.pygeoapi.io/en/latest/installation.html
[2] https://github.com/geopython/pygeoapi/milestone/12
[3] https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md


On Mon, Apr 1, 2024 at 8:18 PM Ivan Lucena 
<[email protected]<mailto:[email protected]>> wrote:
Hi Tom.

Thank you for your feedback.

Good to know that there are recent updates. When do you think they are going to 
be available for pip/conda installers?

Thank you for updating with the demo link.

Unfortunately, it seems like the demo is not compactible with pygeoapi 0.16.1. 
Like I mentioned before. There are a lot more changes to be made on 
"settings.py" to make it at least "compile". I could send you an update, if you 
want.

Thanks again,

Ivan


________________________________
From: Tom Kralidis <[email protected]<mailto:[email protected]>>
Sent: Saturday, March 23, 2024 7:13 AM
To: Ivan Lucena <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>
Subject: Re: [pygeoapi] Django example

Hi Ivan: thanks for the info and feedback.  There were recent updates to Django 
endpoints for Tiles support in the last week in the main branch of development.

In addition, we do have a Django example in [1], which may help.

Hope this helps.

..Tom

[1] 
https://github.com/geopython/pygeoapi-examples/tree/main/django/sample_project

On Mon, Mar 18, 2024 at 10:30 PM Ivan Lucena via pygeoapi 
<[email protected]<mailto:[email protected]>> wrote:
Hi folks,

My name is Ivan, I'm an ex OSGeo maintainer and GDAL contributor, now working 
as FOSS user.

I have a django project on the backend and a React frontend using OpenLayers.

The django project implements REST API and communicates with GEE, and is 
deployed on MS IIS.

I setup a MVT using pygeoapi and that is working really fine on development, 
using "pygeoapi serve".

I thought I could integrate pygeoapi with my django backend would simplify my 
deployment. But that is not working well.

First of all, looking at the pygeoapi doc, I don't see the point of running 
"pygeoapi serve --django". I can't change any setting by doing it. So, there is 
no permission to access the service from the frontend app.

Since version 0.15.0, there is no more django example project, and the code is 
incompatible with newer version.

If anyone tries to follow the instructions, it will fail. But I figured that by 
coping some code from the current (0.16.1) "pygeoapi/django_/settings.py" 
(0.16.1) into my django project "settings.py" seems to fix the errors.

Now, I can run "python manger.py runserver" and both my backend and pygeoapi 
runs from that. Exactly how I imagined that it would work on my deployment.

But the front end doesn't access the tiles as it does so well when it runs on 
development server with "pygeoapi serve" (no --django). Lots of 404 errors.

It seems like the pygeoapi django code is not abandoned, so where can we find 
the code of a running example?

Or do you have any other good advice? Like "forget django", deploy some other 
way.

Thank you so very much. I appreciate your work.

Best regards,

Ivan





_______________________________________________
pygeoapi mailing list
[email protected]<mailto:[email protected]>
https://lists.osgeo.org/mailman/listinfo/pygeoapi
_______________________________________________
pygeoapi mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/pygeoapi

Reply via email to