geosolutions-it / geonode-subsites

MIT License
2 stars 1 forks source link

Possible duplicate URL with GeoNode Home #37

Open jkaris opened 6 months ago

jkaris commented 6 months ago

Hi. On installing the Subsites module, and creating some subsites as stated in the documentation, the home page referred to as home results to http:///en-us/ as, and the catalog that was initially there does not show. image

Does installing Subsites introduce conflict with the home URL as they both refer to the same? This is what shows when creating a sample Italy subsite. image

The subsite configuration is shown below. image

and the settings as below.

image

jobot12 commented 5 months ago

How did you get it installed, in particular in the development enviroment? While doing the migration step in the installation, i get the error: ModuleNotFoundError: No module named 'subsites' and I suspect my requirements.txt is wrong. Mine looks like this:

image
jkaris commented 5 months ago

Hi @jobot12. First, using Docker (GeoNode 4.2.x)

Using advanced installation in an Ubuntu 22.04 LTS server

giohappy commented 5 months ago

@jkaris the subsites module shouldn't interfere with the home page. It's URLs are all mounted as /subsites/*. I suspect the error is due to something different. Could you turn debug on (DEBUG=True)?

jkaris commented 5 months ago

@giohappy thank you for this suggestion. on turning DEBUG=True, when accessing the created subsite, in this case italy and when accessing the subsite, this is the error that I get

image

from the error above, I noticed that its referring to subsites' views and utils.

additionally, when trying to access links such as uploading new dataset from home page, the error thrown is shown below

image

On referring to the second error above, this class is one throwing error image