Hello, I have a basic wsgi django application. I've configured env variables and followed the instructions here (https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/#https) to prep for production.
I'm using Netlify as my hosting provider, and in build settings I'm not sure what to put as the build command or the publish directory. I currently have the following settings:
base directory: /
package directory: Not set
build command: pip install -r requirements.txt
publish directory: python3 manage.py runserver 0.0.0.0:80
But when I deploy my site, I get the following build error:
12:30:07 PM: $ pip install -r requirements.txt
12:30:08 PM:
12:30:08 PM: (build.command completed in 949ms)
12:30:08 PM:
12:30:10 PM: Failed during stage "building site": Build script returned non-zero exit code: 2
12:30:10 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:30:10 PM: Failing build: Failed to build site
I think it's because my requirements.txt is empty. Honestly I only created it because I saw somewhere that I needed it. I created it using a command that compiles the packages that I need, but since nothing was produced does that mean my app doesn't need to install any packages?
Side note:
I recently switched to a windows computer and I'm running into issues getting python stuff installed locally, like venv for example. Really struggling here, I am starting to feel frustrated because I'm tripping at the finish line. Thanks for your help, I really do appreciate it a ton. 🙂