This is just a basic sample for django projects
- Clone the repository
- Create a virtualenv with Python 3.6
- Activate the virtualenv
- Install dependencies
- Configure the instance with .env
mkdir ProjectName
cd ProjectName
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install django
django-admin.py startproject config . --template=https://github.com/RonaldTheodoro/Basic-Django-Project/archive/master.zip --name=config
pip install -r requirements-dev.txt
cp contrib/env-sample .env
- Create an instance in Heroku
- Send the configurations to Heroku
- Define a SECRET_KEY for the instance
- Define DEBUG=False
- Send the source code to heroku
heroku create MyApp
heroku config:push
heroku config:set SECRET_KEY=`python contrib/secret_gen.py`
heroku config:set DEBUG=False
git push heroku master --force