Django only runs by command line but not in PyCharm

96 Views Asked by At

I'm trying to run a Django (version 2.1) project in PyCharm, and the run configurations are properly set to work with the right environment and to use the manage.py file to run the server. At least with other projects in PyCharm I can run without problems. But why I only get the following error

django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured

only when running directly from PyCharm? By command line it runs perfectly fine with the command 'python manage.py runserver'.

0

There are 0 best solutions below