I have a django/react app I created using this tutorial here
Although slightly different, I then tried to deploy my app to heroku using this tutorial here
The directory structure following the tutorials are different though. My directory structure is as follows...
django-todo-react/
backend/
backend/
todo/
manage.py
...
frontend/
all my react stuff...
in my django-todo-react folder (the project root directory) I have requirements.txt, Procfile, package.json, and '.gitignore` file.
To my understanding the Procfile should contain something like web: gunicorn backend.wsgi but because my Procfile is in the root directory I do instead the following web: gunicorn backend/backend.wsgi that looks very weird but basically I go into my backend folder where I have my actual backend project I started with django-admin startproject backend and get wsgi.
I added all the other stuff from the second tutorial I mentioned this one but still no such luck. I get a COLLECT_STATIC error and if I silence the error everything passes but I then get a application error when opening my heroku app.
I have already tried deploying an app just using the 2nd tutorial and all worked fine but that had the directory structure of the second tutorial. I thought that changing my Procfile to have web: gunicorn backend/backend.wsgi would point to the right thing.
So I basically just want to have a server folder which in my case is my backend folder and a client folder which for me it's frontend. This is not working for me though.