Could not import settings (Django server configuration)

Answered

I cloned my Django project which apparently isn't automatically recognized by PyCharm as a Django project. I am trying to configure the Django server to launch my app locally, so in Edit Configurations I am heading to Django server and then clicked "Fix" to enable Django support as it's asked. Now this is where I must be doing it wrong because after configuring the project root, the settings file and the manage file, when launching the server I am getting a "could not import settings" error.

I am not sure what the project root should be so I have tried both with the directoy at the very top (MyApp), and the second level directory mysite (this is the sources root). None worked.

As a settings file I selected a custom one I am using under MyApp/mysite/mysite/settings/custom_settings.py.

And finally, as the manage file I am also using one (that uses the previous settings file) that's custom, under MyApp/mysite/manage_custom.py.

What could be wrong?

Thanks in advance.

0
1 comment

Hello.

Can you provide your project to our support to check or, at least, screenshot of project structure, run configuration and Django settings?

0

Please sign in to leave a comment.