How to Deploy Django App on Heroku with PostgreSQL Database

Поделиться
HTML-код
  • Опубликовано: 25 окт 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.

  • @nikhilsingh-xu5mi
    @nikhilsingh-xu5mi 2 года назад

    Best video for understanding deployment on heroku

  • @junglegames6153
    @junglegames6153 2 года назад +1

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

  • @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.

  • @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.

  • @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!

  • @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

  • @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

  • @crish2480
    @crish2480 2 года назад +1

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

  • @pranavarora2511
    @pranavarora2511 2 года назад

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

  • @nelisiwemasango8890
    @nelisiwemasango8890 5 месяцев назад

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

    • @codeaura5138
      @codeaura5138  5 месяцев назад

      You are so generous.! 🫣

  • @hank86211
    @hank86211 2 года назад +1

    dude i love u u save my life

  • @guratete
    @guratete 2 года назад +1

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

  • @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.

  • @alshahriar9939
    @alshahriar9939 3 года назад +1

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

  • @promaxcomputer925
    @promaxcomputer925 2 года назад

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

  • @paborlouise319
    @paborlouise319 2 года назад

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

  • @kirannarwade3017
    @kirannarwade3017 2 года назад

    Thank you so much sir you helped me 🙏🏻

  • @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

  • @northerngannet5775
    @northerngannet5775 3 года назад +1

    Thanks, great video!

  • @andresgg7869
    @andresgg7869 2 года назад

    Cool. Thx for all!

  • @SaifulAlam15
    @SaifulAlam15 3 года назад

    Explained well. Thanks..

  • @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

  • @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.

  • @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...

  • @kaitouang7378
    @kaitouang7378 2 года назад

    Thank you so much

  • @achyutkayastha4248
    @achyutkayastha4248 2 года назад +1

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

  • @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.

  • @alexandergarzo9415
    @alexandergarzo9415 2 года назад

    How do you handle media files?

  • @FullStackDevGreg
    @FullStackDevGreg 2 года назад

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

  • @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

  • @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.

  • @unnatisharma1261
    @unnatisharma1261 3 года назад

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

  • @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.

  • @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.

  • @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

  • @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

  • @avneez1631
    @avneez1631 2 года назад

    Can I do it with the MySQL database?

  • @tgbotdeveloper
    @tgbotdeveloper 2 года назад

    Thanks bro! But Media Files dont work :(

  • @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.

  • @bourkimohamed1068
    @bourkimohamed1068 3 года назад +1

    Thanks

  • @bourkimohamed1068
    @bourkimohamed1068 3 года назад

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

  • @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

  • @duruakuebuka9148
    @duruakuebuka9148 2 года назад

    Not to be gay, but I love you💀

  • @teghenlesley7250
    @teghenlesley7250 2 года назад

    SAVIOUR😔 M FEEELING EMOTIONAL AFTER TRYING AND TRYING

  • @rovshenashirov7747
    @rovshenashirov7747 2 года назад +1

    Is free?

  • @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