I’m struggling with a deployment issue on Render with my Django project.I’m struggling with a deployment issue on Render with my Django project. When deploying, I get
ModuleNotFoundError: No module named 'accounts'
Project Structure:
portfolio_app/
└── django_portfolio_app/
├── portfolio_app/
│ ├── init.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── accounts/
├── projects/
├── resume/
├── forum/
├── theme/
│ └── static/
└── manage.py
I did specify in the render deployment settings that django_portfolio_app is the root directory. No idea where to go from now on, as I’m stuck on this error since yesterday. Thanks for any advice and feedback
1 Like
I have not tried to deploy with Render but I will try to check for general issues.
- Generally speaking, “root directory” refers to the directory where your
manage.py
is located. - Have you added
django_portfolio_app
toINSTALLED_APPS
in yoursettings.py
file?