2

Can't figure out why is PyCharm keeping raises this error:

enter image description here

I have set everything including Django server configuration and everything works - DB connection, remote host connection, django server etc.

Don't know if it's database problem. Connection works properly. The DB is remote on DigitalOcean droplet.

in settings.py

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'our_db',
        'USER': 'django',
        'HOST': '<ip>',
        'PASSWORD': '<pwd>',
        'PORT': 5432,
        'ATOMIC_REQUESTS': True,
    }
}

I have connection to remote Ubuntu 16.04 where I use ssh key to authenticate.

Do you know where is the problem?

Milano
  • 18,048
  • 37
  • 153
  • 353
  • try this: https://stackoverflow.com/questions/5988597/pycharm-django-settings-module-is-undefined –  Jan 16 '18 at 15:01
  • For the record: Pycharm provides a data source properties dialogue. If for some reason it is out of sync with settings, use the properties "test connection" button to fix the issue – rhoerbe Dec 31 '18 at 07:14

0 Answers0