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

No module named 'geonode.local_settings' #6518

Closed
villa101101 opened this issue Oct 9, 2020 · 4 comments
Closed

No module named 'geonode.local_settings' #6518

villa101101 opened this issue Oct 9, 2020 · 4 comments

Comments

@villa101101
Copy link

Expected Behavior

Module should be found and commands in the local_settings.py file should be executed

Actual Behavior

The module is not found

Steps to Reproduce the Problem

  1. workon geonode
  2. cd /opt/geonode
  3. cp geonode/local_settings.py.geoserver.sample geonode/local_settings.py
  4. DJANGO_SETTINGS_MODULE=geonode.local_settings paver reset
    DJANGO_SETTINGS_MODULE=geonode.local_settings paver setup
    DJANGO_SETTINGS_MODULE=geonode.local_settings paver sync
    DJANGO_SETTINGS_MODULE=geonode.local_settings python manage.py collectstatic --noinput
  5. sudo vim /etc/uwsgi/apps-enabled/geonode.ini
  6. :%s/geonode.settings/geonode.local_settings/g
    :wq
  7. sudo PYTHONWARNINGS=ignore VIRTUAL_ENV=$VIRTUAL_ENV DJANGO_SETTINGS_MODULE=geonode.local_settings GEONODE_ETC=/opt/geonode GEOSERVER_DATA_DIR=/opt/data/geoserver_data TOMCAT_SERVICE="service tomcat" APACHE_SERVICE="service nginx" geonode_updateip -p localhost

Specifications

  • GeoNode version: 3.0.0.
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker):manual from the repo
  • Platform: Ubuntu 18.04 (LTS) x64
  • Additional details:
    the file path opt/geonode/geonode:

Screenshot 2020-10-09 at 3 34 37 PM

so the file is present but it is saying the module is not found when I ran it in the directory opt/geonode

@villa101101
Copy link
Author

@afabiani

@afabiani
Copy link
Member

There's an update of the documentation pending here GeoNode/documentation#64

Could you probably try again following that one?

@villa101101
Copy link
Author

villa101101 commented Oct 16, 2020

After doing a fresh installation with the updated documentation I have ran into a new error. Error is shown below.
Screenshot 2020-10-16 at 11 32 12 AM

That error occurred when I ran the command " DJANGO_SETTINGS_MODULE=geonode.local_settings paver sync"

@villa101101
Copy link
Author

Original issue has been resolved with the latest changes to the documentation.

The issue with the superuser was solved by giving the user "geonode" superuser privilege.

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

2 participants