Django 2.1 - Hosting and deploying app on Heroku - 13/14

Hosting on Heroku – Django 2.1 – Hosting and deploying app on Heroku – 13/14


Django 2.1 – Hosting and deploying app on Heroku – 13/14

Hosting on Heroku

In this video we learn to host our Django project on Heroku for free. Below is the check list you of things you need to do to host your Django project on Heroku.

– Copy the project seperately
– Go to ‘Getting Started on Heroku with Python’
– Create an Heroku account
– install pipenv
– Install git ( check git –version)
– Install Heroku CLI
– Login heroku
– Create a virtual enviroment
– Run manage.py not gonna run – pip freeze nothing installing
– Check which version django,requests you have and install it
– Run manage.py and then stop it
– Go to django heroku
– Create a Procfile and
– Install django-heroku
– Add stuff to settings.py file
– Install guincorn
– pip freeze – requirements.txt (use the angle bracket after pip freeze. Youtube doesn’t allow angle bracket in description :/ )
– heroku create attreyaweb (to create an app on heroku)
– git status git commands – (git push heroku master
– Open up the website)
– Admin panel not working. heroku run bash. Migrations

Complete Playlist –

Source Code –
Subscribe –
Website – www.buildwithpython.com
Instagram –

you search:

Hosting on Heroku

Django 2.1 – Hosting and deploying app on Heroku – 13/14

26 thoughts on “Hosting on Heroku – Django 2.1 – Hosting and deploying app on Heroku – 13/14

  1. Sir deployed but all the css and images from the website disappeared.Please suggest something.
    Sir staticfiles in my settings is –
    STATIC_URL = '/static/'

    STATICFILES_DIRS = [

    os.path.join(BASE_DIR,'static')

    ]

    STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

  2. bro got error……

    (Publish) E:PublishOWN_WebsiteLearning>heroku logs –tail

    2020-10-08T20:11:27.196726+00:00 app[api]: Release v1 created by user [email protected]gmail.com

    2020-10-08T20:11:27.196726+00:00 app[api]: Initial release by user [email protected]gmail.com

    2020-10-08T20:11:27.481634+00:00 app[api]: Enable Logplex by user [email protected]gmail.com

    2020-10-08T20:11:27.481634+00:00 app[api]: Release v2 created by user [email protected]gmail.com

    2020-10-08T20:13:08.073314+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/" host=mahidweb.herokuapp.com request_id=5a8ef245-3386-4697-980c-ce590415340b fwd="157.49.112.213" dyno= connect= service= status=502 bytes= protocol=http

    2020-10-08T20:13:08.799611+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/favicon.ico" host=mahidweb.herokuapp.com request_id=6fd69004-3a77-40e8-adb3-2ebd410a87ac fwd="157.49.112.213" dyno= connect= service= status=502 bytes= protocol=http

    2020-10-08T20:18:53.000000+00:00 app[api]: Build started by user [email protected]gmail.com

    2020-10-08T20:19:40.944862+00:00 app[api]: Running release v3 commands by user [email protected]gmail.com

    2020-10-08T20:19:40.944862+00:00 app[api]: Attach DATABASE (@ref:postgresql-acute-99728) by user [email protected]gmail.com

    2020-10-08T20:19:40.959956+00:00 app[api]: @ref:postgresql-acute-99728 completed provisioning, setting DATABASE_URL. by user [email protected]gmail.com

    2020-10-08T20:19:40.959956+00:00 app[api]: Release v4 created by user [email protected]gmail.com

    2020-10-08T20:19:41.238538+00:00 app[api]: Deploy 8f74effc by user [email protected]gmail.com

    2020-10-08T20:19:41.238538+00:00 app[api]: Release v5 created by user [email protected]gmail.com

    2020-10-08T20:19:51.000000+00:00 app[api]: Build succeeded

    2020-10-08T20:20:15.973402+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=mahidweb.herokuapp.com request_id=4ada43bd-6e20-4f54-a2e7-7e4f9ebccd5d fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

    2020-10-08T20:20:17.319011+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=mahidweb.herokuapp.com request_id=9229791e-750d-45fc-93d0-555ee838fd46 fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

    2020-10-08T20:23:38.662369+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=mahidweb.herokuapp.com request_id=8e1ff7f1-193f-4ef7-a2dd-06acd22be0c0 fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

    2020-10-08T20:23:39.531734+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=mahidweb.herokuapp.com request_id=76f56580-11ec-43f1-aa84-0c8626dc86a0 fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

    2020-10-08T20:30:56.681498+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=mahidweb.herokuapp.com request_id=ddd3c13b-9064-46b1-85dc-8260a84b627c fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

    2020-10-08T20:30:57.558284+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=mahidweb.herokuapp.com request_id=e3247765-d906-4097-b6ef-b08371985045 fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

    2020-10-08T20:30:59.756160+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=mahidweb.herokuapp.com request_id=6e8010a6-a7e4-4abb-8d17-1be961cd3316 fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

    2020-10-08T20:31:00.628901+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=mahidweb.herokuapp.com request_id=2ca275ef-dc1c-48eb-aecd-3c0ed35165c6 fwd="157.49.112.213" dyno= connect= service= status=503 bytes= protocol=http

Leave a Reply

Your email address will not be published. Required fields are marked *