GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.41k stars 1.11k forks source link

django.db.utils.OperationalError: no such table: django_site #12345

Closed nesangcode closed 1 week ago

nesangcode commented 1 week ago

Expected Behavior

Run smoothly

Actual Behavior

Show errors

Steps to Reproduce the Problem

  1. Follow Vanilla installation steps till
    source .env_local
    PYTHONWARNINGS=ignore VIRTUAL_ENV=$VIRTUAL_ENV DJANGO_SETTINGS_MODULE=geonode.local_settings GEONODE_ETC=/opt/geonode/geonode GEOSERVER_DATA_DIR=/opt/data/geoserver_data TOMCAT_SERVICE="service tomcat9" APACHE_SERVICE="service nginx" geonode_updateip -p localhost

Specifications

nesangcode commented 1 week ago

Unknown command: fixsitename

nesangcode commented 1 week ago

Unknown command: 'updatelayers'. Did you mean dumpdata? Type 'django-admin help' for usage. Unknown command: 'set_all_datasets_alternate' Type 'django-admin help' for usage. Unknown command: 'set_all_datasets_metadata' Type 'django-admin help' for usage. Unknown command: 'updatemaplayerip' Type 'django-admin help' for usage.

nesangcode commented 1 week ago

Available subcommands:

[django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata makemessages makemigrations migrate optimizemigration runserver sendtestemail shell showmigrations sqlflush sqlmigrate sqlsequencereset squashmigrations startapp startproject test testserver

etj commented 1 week ago

It seems that you didn't install geonode in your venv.

nesangcode commented 1 week ago

no, that's because the wrong DJANGO_SETTINGS_MODULE=geonode.local_settings

it must be DJANGO_SETTINGS_MODULE=geonode.settings

mattiagiupponi commented 1 week ago

If is a matter of doc, feel free to open a PR with the changes here https://github.com/GeoNode/documentation