Notas para subir un proyecto a heroku
$ cd ../Python/
$ mkdir heroku
$ cd heroku/
$ python3 -m venv .env
$ source .env/bin/activate
$ django-admin startproject config .
$ ./manage.py migrate
$ ./manage.py createsuperuser
$ ./manage.py runserver
$ heroku login
$ heroku create lubresrl --buildpack heroku/python
En mi caso, deseo ignorar venv, python y visualstudiocode
Siga este enlace para generar el archivo .gitignore
$ git init
$ git add --all .
$ git commit -m "primera subida a Heroku"
$ heroku git:remote -a lubresrl
previamente, desabilitamos collectstatic
$ heroku config:set DISABLE_COLLECTSTATIC=1
$ git push heroku master
$ git add --all .
$ git commit -m "modificaciones en Heroku"
$ git push [heroku master]
$ heroku pg:psql
psql>\dt
psql>select * from homepage_entries;
psql>\q
Realizamos las modificaciones necesarias para que nuestro proyecto django funcione correctamente en Heroku
$ pip install django $ pip install gunicorn $ pip install psycopg2 $ pip install dj-database-url $ pip install python-decouple $ pip install whitenoise $ pip freeze > requirements.txt
$ django-admin startproject config . $ mkdir static $ touch static/.keep
creamos el archivo Procfile modificamos nuestro settings (https://codigofacilito.com/articulos/deploy-django-heroku)