Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible duplicate URL with GeoNode Home #37

Open
jkaris opened this issue Apr 3, 2024 · 4 comments
Open

Possible duplicate URL with GeoNode Home #37

jkaris opened this issue Apr 3, 2024 · 4 comments

Comments

@jkaris
Copy link

jkaris commented Apr 3, 2024

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

@jkaris jkaris changed the title Posssible duplicate URL with GeoNode home Posssible duplicate URL with GeoNode Home Apr 3, 2024
@jkaris jkaris changed the title Posssible duplicate URL with GeoNode Home Possible duplicate URL with GeoNode Home Apr 3, 2024
@jobot12
Copy link

jobot12 commented Apr 9, 2024

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
Copy link
Author

jkaris commented Apr 12, 2024

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

  • entered into docker container named django4geonode
  • using pip install git+https://github.com/geosolutions-it/geonode-subsites@main#egg=geonode-subsites I installed subsites
  • Edited the settings.py file for geonode by adding subsites to installed apps as per the instructions in the docs
  • Edited geonode project urls.py file by adding subsites URL as instructed in the documentation
  • Run python manage.py migrate to create tables for subsites
  • Restarted django4geonode container using docker restart django4geonode command
  • created subsites in Django admin

Using advanced installation in an Ubuntu 22.04 LTS server

  • Installed subsites via pip after successful GeoNode 4.2.x install
  • Installed subsites module via pip command similar to the above
  • Migrate command to populate database tables
  • Created subsites in Django admin

@giohappy
Copy link
Contributor

@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
Copy link
Author

jkaris commented Apr 12, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants