[SOLVED] Console message "There is no such settings file settings" when running Django test.py in Pycharm

Answered

PyCharm Django projects require some setup to fully use all the IDE features.  Many actions run fine, but Django testing does not.  When running test.py, the following console messages indicate additional project setup is needed:

  • There is no such settings file settings
  • AttributeError: module 'django.conf.global_settings' has no attribute 'ROOT_URLCONF'

Verify the Pycharm Tools menu has an item "Run manage.py Task...".  If not, configuration changes are needed in File > Settings > Languages & Frameworks > Django. Additionally, if using a remote database, permission to create databases is required.

3
5 comments

Hi Jantonacci,

Thank you for that. Have you tried to reach us out somewhere?

0
Avatar
Permanently deleted user

Hi Sergey,

No, I did not realize it was IDE settings until it I solved it.  Once I did I A) felt foolish, and B) wanted to document the solution.

Ciao,
Jason

0

Oh, I see.

Please next time do not hesitate to contact us if you have any questions or problems, we are happy to help.

0

This hint was useful to me.  I had the message `There is no such settings file settings` in test runs when dependencies changed for my Django project and I needed to rebuild with `pip install` (via docker-compose in my situation)

0

This error message also shows up if the settings file is invalid, like if there is a syntax error in the file.

0

Please sign in to leave a comment.