This repository is meant to serve as a starting point for deploying a Django REST Framework (DRF) project to Heroku. It includes a basic DRF project with settings configured for deployment to Heroku.
To use this code, you'll need the following:
- Python 3.x
- A virtual environment for Python 3.x
- Git
- A Heroku account
Create a new directory for the project:
mkdir drf-heroku
Create a new virtual environment:
python3 -m venv djangoenv
Activate the virtual environment:
source djangoenv/bin/activate
Create requirements.txt:
touch requirements.txt
Paste requirements.txt from this repository into your own requirements.txt file.
Install the dependencies:
pip install requirements.txt
Copy and paste the code from the Procfile to your own Procfile.
To deploy the project to Heroku, follow these steps:
Log in to Heroku:
heroku login`
Create a new Heroku app:
heroku create
Push the code to Heroku:
git push heroku master
Any issues with this code should be reported in the Issues section of this repository.