How To Deploy A Django Project To Heroku

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 111

  • @sophiatang3770
    @sophiatang3770 2 місяці тому

    THANK YOU TOMI I LOVE YOU I WAS STRUGGLING SO BAD AND IT DIDNT WORK AT FIRST. I WAS USING KAGI and it kept giving me a 505 error bc it was a git repo cloned into my project so heroku kept pulling the old github code and not my modified kagi code in vscode. I then updated and pushed the code in github but never came back to it till now. Two weeks later I'm trying to do a diff method and all the other tutorials hosted on github. Tried it didn't work went thru the hassle of downloading all the big files to git desktop for no reason. I should've just tried it this way again after I figured out the kagi thing so I didn't have to waste another 3 hours.. BUT STILL IT WORKS AND IM SO HAPPY.

  • @DanSevigny
    @DanSevigny 2 роки тому +4

    Thanks for the tutorial -- it would be helpful to hear more about *why* you're doing any particular thing, rather than just seeing you do it. Someone with no other knowledge of Heroku / Django would have a hard time using this tutorial to launch their own project. That said, always appreciative of content like this and glad to see how you do it. For me, reading the documentation was necessary to really learn.

    • @stocaster
      @stocaster Рік тому

      yes. links to documentation and help pages for reference will be good.

  • @theebookkeeper
    @theebookkeeper 4 роки тому +7

    finally now I can test my projects on the internet ;)

    • @CodeWithTomi
      @CodeWithTomi  4 роки тому +3

      I'm glad you enjoyed it

    • @3ssem-499
      @3ssem-499 5 місяців тому

      @@CodeWithTomi why I should first payment method fuckkkkkkkkkkkkkkkkk

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

    Man you are the best i was hopeless before watching this video but thanks to you

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

    Thanks for the StaticFiles code, that fixed my static files error when deploying to Heroku 👍

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

      I'm glad you enjoyed it

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

      @@CodeWithTomi I am getting this error: "TemplateDoesNotExist at /" how do I fix this?

  • @thefrancho5235
    @thefrancho5235 3 роки тому +4

    Dude amazing video, i was tryin to deploy my app for 14 hours, got hopeless and i watched this videos as last resort...
    And it worked! Thanks Tomi, for real

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

      Thanks for watching it, and I'm glad you like it

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

    Man, you are incredible. Thanks for those tuts

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

    Thanks man, that django-heroku app is just the right solution, a wolẹ night was wasted without it

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

    You explain that plain and simple. I like that!!!

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

    Hi, please, i need help, i got this error message after i did "git push heroku master" ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to

  • @brantechsyt6130
    @brantechsyt6130 4 роки тому +3

    Nice video Tomi!!

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

    Thanks man, after 5 hours it works :'3

  • @quran-forAll
    @quran-forAll 2 роки тому +1

    You always make everything clear and easier ♡

  • @trevorphillips9731
    @trevorphillips9731 4 місяці тому

    Bro! This worked! THANK YOU!!

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

    Thanks for the video man. Very clear & helpful.

  • @samiorra405
    @samiorra405 Рік тому

    Thank you very much, so simple and so efficient

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

    Requested runtime (Python-3.10.5) is not available for this stack (heroku-22).
    I tried updating Heroku CLI....
    changing buildpacks
    and different stacks.
    I'm stuck yet gain

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

      P at python should be lower case

    • @slicker1260
      @slicker1260 Рік тому

      hey im thinking of using this tutorial i imagine the 2 year time gap might cause issues like it has with you , did you ever end up figuring it out with hosting django on heroku ? any other method u used or tutorial that worked ? thanks : )

  • @bahdev1324
    @bahdev1324 4 роки тому +1

    Tomi question here
    I'm confuse a little bit on how you push the project to heroku
    I saw you did git add . and git commit
    And later git push heroku master
    Is the command git push heroku master going to host the files on github?

    • @CodeWithTomi
      @CodeWithTomi  4 роки тому +2

      git add . is going to add all the files and folders in your project to the initialized repository
      git commit is for mainly leaving a message , but very important
      git push heroku master will host all your project files to the server, then your project is now deployed👍

    • @bahdev1324
      @bahdev1324 4 роки тому +1

      @@CodeWithTomi
      Okay Tomi
      Is there any possibility to host my project on heroku without hosting them on github?

    • @CodeWithTomi
      @CodeWithTomi  4 роки тому +2

      Yes, there are other options

    • @bahdev1324
      @bahdev1324 4 роки тому +1

      @@CodeWithTomi
      Thanks Dude
      I really appreciate...

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

    You spelled application wrong in the Procfile. Is that why i'm getting a error?

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

    i thought heroku was free but it asking me to add a payment information to create an app

  • @jagadeeshmandala4097
    @jagadeeshmandala4097 4 роки тому +1

    How can we add payment option while registering to any online workshops??

  • @arbaaz9194
    @arbaaz9194 4 роки тому +3

    Can you do a video for setting Django app for deployment? like setting up environment variables, static files, media files, DEBUG=False, etc. I always face some problems while setting up for deployment.

    • @CodeWithTomi
      @CodeWithTomi  4 роки тому +2

      Watch this video I did on django deployment.... I explained everything there:
      ua-cam.com/video/XZoTukqekzY/v-deo.html

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

    Anytime I try to open the link it shows application error. Please how can I fix this? Its driving me crazy

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

    You are good in explanations... Thanks 👍

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

    Great tutorial cheif, please I'm unable to push to master, it says "[remote rejected] master -> master (pre-receive hook declined) ..." what do I do

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

    Man What? You are Mr easy of explanation

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

    Hey Tomi thanks for this, please how do I add my media file on heroku too, I need some clarity

    • @CodeWithTomi
      @CodeWithTomi  2 роки тому +2

      You need to setup cloud storage in your application before deploying it

  • @quran-forAll
    @quran-forAll 2 роки тому

    Please how can i push(add) my updates to same project

  • @haroonzuberi339
    @haroonzuberi339 Рік тому

    Simple and easy steps. thank you

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

    You are really great!! Thank yo so much

  • @ayomidejayeola2369
    @ayomidejayeola2369 4 місяці тому

    What if you created your project already how do you go about it

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

    i am getting an application error, i did every step but did i miss anything that most people did also?

  • @quran-forAll
    @quran-forAll 2 роки тому

    Good job bro

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

    Tomi, you are doing well

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

    You are the best

  • @gracedumle8408
    @gracedumle8408 3 місяці тому

    Thank you for this video

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

    Thanks for the video. Very straightforward!
    I am having a Server Error (500) though. If I change debut to 'True', it works fine.
    Any ideas of what is wrong with my app, please?

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

      I got the same issue and Putting Debug to 'TRUE' solve it.... Please someone could explain me why???? I'm confused!!!!!!!
      Lot of documentation recomend to put it false!!!!

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

    RESPECT MAN!

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

    hii, when i try heroku login it gives me error : spawn unknown code : unknown, can you help me

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

    yo can you help me push my project to heroku?
    its giving me errors

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

    Thanks - you are awesome

  • @ameernexus
    @ameernexus 7 місяців тому

    (myenv) PS D:\Django Projects\Completed Projects\portfolio> heroku
    heroku : The term 'heroku' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
    path was included, verify that the path is correct and try again.
    At line:1 char:1
    + heroku
    + ~~~~~~
    + CategoryInfo : ObjectNotFound: (heroku:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    i am facing this error when i write the heroku in terminal

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

    Please i need help on building a junior developer portfolio , after following your videos for a while i feel i can finally call myself a junior developer

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

    How to deploy django blog app
    Is this same?

  • @blesscheriyan2440
    @blesscheriyan2440 4 роки тому +1

    Bro.please upload how to host upcoming events in website at same time .v have to hosts 4 events....using Django

    • @CodeWithTomi
      @CodeWithTomi  4 роки тому

      Ok... I will have a look at that

    • @blesscheriyan2440
      @blesscheriyan2440 4 роки тому +1

      @@CodeWithTomi thanks so much bro....
      Please do it fastly.....i will still waiting for next videos this

  • @MuhammadLab
    @MuhammadLab 4 роки тому +2

    👍🏻👍🏻

  • @muhammaddhimasekowiyono418
    @muhammaddhimasekowiyono418 2 місяці тому

    can this deployment open django admin?

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

    Please mine is getting a programming error.
    How do I fix this??

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

    genial amigo, gracias! saludos desde Colombia

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

    thanks alot mate

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

    Great Video, bro. But I got an error "remote rejected" it failed to push some refs

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

    heroku isn't free anymore and you got to enter credit card info to deploy an app

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

    Thank you very much

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

    How to get domain for that

  • @bahdev1324
    @bahdev1324 4 роки тому +1

    Thanks Tomi

  • @juhiesayyed
    @juhiesayyed Рік тому

    shat shat naman apko
    🥲

  • @Dracula2003
    @Dracula2003 17 днів тому

    thank you !

  • @chideraonuh5943
    @chideraonuh5943 Рік тому

    Very easy and well explained, but you did not say if we can create heroku apps for free or not. I can't continue right now because i have to pay for my domain name. Which honestly was not what I had planned or expected

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

    Thank you

  • @gracedumle8408
    @gracedumle8408 3 місяці тому

    But heroku isn't free right

  • @KYIM-jb8xi
    @KYIM-jb8xi 8 місяців тому

    thank you thank you thank you!!!!!!

  • @Nathan-zc1qs
    @Nathan-zc1qs 2 роки тому

    im getting ref erros on the last step

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

    it doesnt work for me

  • @kaushiq847
    @kaushiq847 4 місяці тому

    is it still free?

  • @kabahnelson
    @kabahnelson 4 роки тому

    My Nigerian man always having problem pronouncing H. like your channel

  • @poisson6673
    @poisson6673 4 роки тому +1

    👍

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

    Tomide na you be this??

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

    Where is the code?

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

    🐐

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

    YOU ARE AAMZMZAINZG

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

    wish me luck im gonna get on it