How to Deploy Django App on Heroku with PostgreSQL Database

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 92

  • @mrwiltofficial
    @mrwiltofficial 2 роки тому +6

    Awesome Brother. Almost two days I'm trying to deploy my app. I watched so many videos but nothing works. Your explanation is really awesome and the steps are clear. Expecting more videos on Django framework.

  • @junglegames6153
    @junglegames6153 2 роки тому +1

    Excellent, voice is perfect🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

  • @imaduddinsheikh3546
    @imaduddinsheikh3546 3 роки тому +5

    I tried so many reads on Stack Overflow and blogs regarding Heroku deployment on Django apps, but so far your video demonstrated it with perfection. Really thankful for your help.

    • @codeaura5138
      @codeaura5138  3 роки тому +1

      Glad it helped.
      Share it with your colleagues or friends. And don't forget to subscribe the channel.

  • @LookNumber9
    @LookNumber9 3 роки тому +6

    FINALLY! A Heroku tutorial that's up-to-date and actually works. Thank you!

    • @codeaura5138
      @codeaura5138  3 роки тому +1

      Glad it helped. :D
      Please, consider subscribing to my channel. More are coming.

    • @LookNumber9
      @LookNumber9 3 роки тому

      @@codeaura5138 Persistent images using S3 would be a nice complement to the initial tutorial.

  • @crish2480
    @crish2480 2 роки тому +1

    starting this tutorial right now. I hope that i am successful in deploying the project

  • @nikhilsingh-xu5mi
    @nikhilsingh-xu5mi 2 роки тому

    Best video for understanding deployment on heroku

  • @roozbehghazavi871
    @roozbehghazavi871 2 роки тому +1

    This tutorial saved my day .it was one of the best tutorials for deploying a django app on heroku . i don't know how to show my gratitude. thank you so much

    • @codeaura5138
      @codeaura5138  2 роки тому

      Thank you for your kind words. Share the video and Stick around ...happy coding!

  • @shneursapo86
    @shneursapo86 2 роки тому

    hey, i just want to say thank you. i spent literall days trying to figure it out, and you showed it all in 15 minutes. i reall appreciate it!!

    • @codeaura5138
      @codeaura5138  2 роки тому

      I also struggled to figure it out initially. Once I perceived it, i thought of sharing the concept with the community..
      Glad you liked it.l Don't forget to subscribe. Waiting for first 1000. :D

    • @fahadhos
      @fahadhos 2 роки тому

      @@codeaura5138 Now not working bro uptade tutorial

  • @hank86211
    @hank86211 2 роки тому +1

    dude i love u u save my life

  • @sanusiabubakr1948
    @sanusiabubakr1948 Рік тому +1

    You really simplified my understanding. Best Heroku deployment tutorial I ever watched... I will be glad if you create one for AWS and Digital Ocean too

  • @solomonbestz
    @solomonbestz 2 роки тому +1

    Requesting a video: Can you please make a video to deploy a django app that successfully sends mail. Thanks. This video was very helpful thanks alot sir.

  • @pranavarora2511
    @pranavarora2511 2 роки тому

    Finally, this tutorial worked for me. Thank you so much.

  • @kirannarwade3017
    @kirannarwade3017 2 роки тому

    Thank you so much sir you helped me 🙏🏻

  • @bartoszzielinski4292
    @bartoszzielinski4292 2 роки тому +1

    Great video. How I can login to PostgresSQL admin panel on deployed app?

    • @codeaura5138
      @codeaura5138  2 роки тому +1

      You can download 'pgAdmin' and then create a server in it which can then connect to your database.
      To create the server, you will need some credentials which can be found on heroku.

  • @nelisiwemasango8890
    @nelisiwemasango8890 5 місяців тому

    can I buy you coffee or something?you have no idea how much you have helped me thank you so much

  • @promaxcomputer925
    @promaxcomputer925 2 роки тому

    Awesome, Awesome. This video is really what i need, thanks and keep doing this great work

  • @guratete
    @guratete 2 роки тому +1

    Thanks mate, been stuck on this for a while and it just made sense. Thanks so much.

  • @andresgg7869
    @andresgg7869 2 роки тому

    Cool. Thx for all!

  • @alshahriar9939
    @alshahriar9939 3 роки тому +1

    This is super. Your explanation is awesome bro. keep it up!

  • @sojasminegjerstad4907
    @sojasminegjerstad4907 3 роки тому +3

    Thank you for this great tutorial:).

    • @codeaura5138
      @codeaura5138  3 роки тому +1

      You are welcome 😊.
      Glad it helped you.
      I would appreciate , if you subscribe to my channel.
      Trying my best to serve the community.

  • @njorogebrian4379
    @njorogebrian4379 2 роки тому

    Thank you, works superbly

  • @paborlouise319
    @paborlouise319 2 роки тому

    Good job 👍. Pls make a tuts on AWS deployment too, I love your contents.

  • @utkarshsharma107
    @utkarshsharma107 3 роки тому +2

    Will it work on blog app which Corey Schafer has made

    • @codeaura5138
      @codeaura5138  3 роки тому

      Why not Utkarsh?

    • @utkarshsharma107
      @utkarshsharma107 3 роки тому

      When I clicked on postgres it showed a new tab named heroku data nothing else
      How to get credintials of host

    • @codeaura5138
      @codeaura5138  3 роки тому

      Sometimes it takes time to get your db created at heroku

    • @utkarshsharma107
      @utkarshsharma107 3 роки тому

      @@codeaura5138 It's taking a lot is there a solution for this

    • @utkarshsharma107
      @utkarshsharma107 3 роки тому

      It is not working 😭 what to do

  • @kaitouang7378
    @kaitouang7378 2 роки тому

    Thank you so much

  • @northerngannet5775
    @northerngannet5775 3 роки тому +1

    Thanks, great video!

  • @Conormcnproductions
    @Conormcnproductions 2 роки тому

    Thanks. Very insightful, but you had me forgetting to make new migrations after changing the database to postgres in the settings file.
    Also, for the ENGINE field, I wrote "postgresql" at the end of the string instead of "postgresql_psycopg2" as it's more relative to the newer versions of Django

  • @SaifulAlam15
    @SaifulAlam15 3 роки тому

    Explained well. Thanks..

  • @alexandergarzo9415
    @alexandergarzo9415 2 роки тому

    How do you handle media files?

  • @begaiymkudainazarova2951
    @begaiymkudainazarova2951 3 роки тому +1

    Hi! Thanks for this great video. Almost everything worked. When I pushed files to github they were saved there inside a folder, not one by one like yours(ex. in my github repository first i can see DDAH/ddah folder and only when i press that i can see all the files) because of this heroku gives me an error when i try to deploy it.

    • @codeaura5138
      @codeaura5138  3 роки тому

      To avoid this issue, you have to initialize your 'git' inside 'ddah' folder, not 'DDAH' folder.

  • @JustinDoesntLookAt
    @JustinDoesntLookAt 2 роки тому +1

    so this is pushing the creds directly, seems kinda not secure... make sure the repository is private!

    • @codeaura5138
      @codeaura5138  2 роки тому

      You are right.
      I kinda demonstrated how this can be done preliminarily, not securely.
      Of course, you will have dot-env etc...

  • @avneez1631
    @avneez1631 2 роки тому

    Can I do it with the MySQL database?

  • @rynkbell
    @rynkbell 3 роки тому +1

    Thanks how to create superuser now?

    • @codeaura5138
      @codeaura5138  3 роки тому

      You can use your local-shell to create a super user. Heroku-cli can be used too..

    • @avinash-xh6qw
      @avinash-xh6qw 3 роки тому

      @@codeaura5138 how to create super user after deploying on heroku

  • @fyardlest1
    @fyardlest1 2 роки тому

    This is a good one! But for the DATABASE part, I do not think it is the best way to do it because you expose the credentials.

    • @codeaura5138
      @codeaura5138  2 роки тому

      You are right.
      In production, these may come from .env variables. My goal was to demonstrate how to go live quickly.

  • @achyutkayastha4248
    @achyutkayastha4248 2 роки тому +1

    doesn't show how to import a local postgresql database to the heroku db. But thanks for the initial config

  • @avinash-xh6qw
    @avinash-xh6qw 3 роки тому +1

    Great tutorial, you haven't used whitenoise anywhere

    • @codeaura5138
      @codeaura5138  3 роки тому +2

      Thank you Ajay,
      I didn't need whitenoise at all because I didn't deal with any static files in this tutorial.
      However, you might need whitenoise in real project.

  • @bourkimohamed1068
    @bourkimohamed1068 3 роки тому +1

    Thanks

  • @unnatisharma1261
    @unnatisharma1261 3 роки тому

    I cannot see profile images after deployment is there a solution for this

  • @FullStackDevGreg
    @FullStackDevGreg 2 роки тому

    Sir you forgot to add the build pack Buildpacks under the Settings tab, you should select heroku/python

  • @devtosxn
    @devtosxn 3 роки тому

    Great work. I don't however think it's a nice idea to have to manually put your heroku database credentials in the code that is pushed to github. Just not best practice.

    • @codeaura5138
      @codeaura5138  3 роки тому

      You are 100% right. For simplicity, actually I demonstrated in that fashion.

    • @devtosxn
      @devtosxn 3 роки тому

      @@codeaura5138 Yes, I understand. Also a tutorial suggestion that I'm very convinced people will find extremely valuable is setting up CI/CD for the Django project, right before they even write any code. So when they push to main branch, it's deployed live.
      I'm serious when I say I'm yet to find any creator who has done a great job with that kind of tutorial.

    • @cje8887
      @cje8887 3 роки тому +2

      @@devtosxn I agree, I recently watched and read a lot of the resources available online on how to set up Django + Postgres (or also DRF and Redis), and honestly most of them are not very good, at least not for someone doing it the first time.

    • @ivayloivanov3744
      @ivayloivanov3744 2 роки тому +1

      You can add them in the Settings > Config Vars. I guess that's the right way to do? It worked for me.

  • @dhruvpatel5661
    @dhruvpatel5661 3 роки тому +1

    i am having this error please help me.... ModuleNotFoundError: No module named 'django_heroku'
    ! Error while running '$ python manage.py collectstatic --noinput'

    • @codeaura5138
      @codeaura5138  3 роки тому +1

      I think, I understood your problem.
      I installed 'django-heroku' package. You might have missed that. Please, watch the video carefully.

    • @dhruvpatel5661
      @dhruvpatel5661 3 роки тому

      @@codeaura5138 now its working thx bro

    • @codeaura5138
      @codeaura5138  3 роки тому

      You are welcome. I am happy that you managed to solve it finally.
      Happy coding! Stay in touch.

  • @rovshenashirov7747
    @rovshenashirov7747 2 роки тому +1

    Is free?

  • @tgbotdeveloper
    @tgbotdeveloper 2 роки тому

    Thanks bro! But Media Files dont work :(

  • @nandinichhajed4824
    @nandinichhajed4824 2 роки тому

    ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: none) can anyone help me resolve this error during deployement

    • @codeaura5138
      @codeaura5138  2 роки тому

      Did you manage to solve it? I removed it from requirements.txt file

  • @duruakuebuka9148
    @duruakuebuka9148 2 роки тому

    Not to be gay, but I love you💀

  • @teghenlesley7250
    @teghenlesley7250 2 роки тому

    SAVIOUR😔 M FEEELING EMOTIONAL AFTER TRYING AND TRYING

  • @openmindjustdoit1306
    @openmindjustdoit1306 3 роки тому

    Hi brother can you tech me this Online meeting
    On zoom or google meeting
    Let me know

    • @codeaura5138
      @codeaura5138  3 роки тому

      What is troubling you? Is there any specific problem? Let me know.
      I thought, this video is sufficient to deploy django app on heroko platform.

    • @openmindjustdoit1306
      @openmindjustdoit1306 3 роки тому

      @@codeaura5138
      Its good work with me
      How work with api to store in database

  • @MagnusAnand
    @MagnusAnand 2 роки тому

    Remember to configure in settings.py:
    Debug = False

  • @bourkimohamed1068
    @bourkimohamed1068 3 роки тому

    Please how to recive notification in my gmaol when someone cotact me in contact form

  • @santiagoortizbasualdo3682
    @santiagoortizbasualdo3682 2 роки тому

    any clue about this error?
    File "/app/.heroku/python/lib/python3.10/asyncio/windows_events.py", line 6, in
    raise ImportError('win32 only')
    ImportError: win32 only