Heroku Webhosting for Django - Python Django Dentist Website #12

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024
  • In this video we'll push our website to Heroku for webhosting!
    We need to install a few things and configure out app to work on Heroku. We'll go over all of that in this video. We'll need the heroku toolbelt so our terminal can connect to Heroku. We'll also need several modules, namely: python-decouple, dj_database_url, and django_heroku which we'll pip install and add to our app.

ความคิดเห็น • 276

  • @Codemycom
    @Codemycom  4 ปีที่แล้ว +3

    ▶️ Watch Entire Money Making Playlist ✅ Subscribe To My TH-cam Channel:
    bit.ly/2tEBTzg bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com
    Take $30 off with coupon code: youtube1

    • @tinothecoder12
      @tinothecoder12 3 ปีที่แล้ว

      i got one problem when i run heroku i got this error ''heroku logs --tail'' could you help sir.

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      @@tinothecoder12 that's not an error, that's what heroku is telling you to type into your terminal to see what the problem is...

    • @tinothecoder12
      @tinothecoder12 3 ปีที่แล้ว

      @@Codemycom oh

    • @musicinsane2156
      @musicinsane2156 2 ปีที่แล้ว

      @@tinothecoder12 heyy were you able to solve it?

    • @tinothecoder12
      @tinothecoder12 2 ปีที่แล้ว

      @@musicinsane2156 Nope sadly I stop using Django for now and start using react.js

  • @matheuslisboa8059
    @matheuslisboa8059 3 ปีที่แล้ว +16

    THANK YOU!!!! IT WAS THE FIRST TIME I FOLLOWED A TUTORIAL THAT WORKS!!! FINALLY I SET MY STATIC FILES IN THE RIGHT WAY ON HEROKU !!! YOU HAVE NO IDEA HOW HAPPY I AM

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Glad it helped!

  • @sriram9786
    @sriram9786 4 ปีที่แล้ว

    You are the only guy who not only teaches how to but also explain errors

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      :-)

    • @sriram9786
      @sriram9786 4 ปีที่แล้ว

      @@Codemycom How can we use user uploadable files and postgres databaae in heroku can you help me sir. And also should we make changes to to django app other than you shown or every verion will work sir? Waiting for your reply sir.

  • @vend57
    @vend57 4 ปีที่แล้ว +17

    Mom: what are u doing?
    Me: Sir Walter White is teaching me how to push my Django Code.

  • @naveenkumarm7339
    @naveenkumarm7339 4 ปีที่แล้ว +2

    I've Completed the Django Dentist Website and Hosted. Thank you for emboldening me !!!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +2

      Congratulations, good job!

  • @calebpeter7020
    @calebpeter7020 3 ปีที่แล้ว +1

    You are more than a teacher. God bless you, sir

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว +1

      Thanks! I appreciate it!

  • @sambitmohanty7835
    @sambitmohanty7835 4 ปีที่แล้ว +4

    You tutorials are Amazing......Your hard work is highly appreciated. Love from India :-)

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Thank you! I appreciate it!

  • @sedoid
    @sedoid 3 ปีที่แล้ว

    Thank You!!!, This is the first time that I followed a tutorial that actually worked!!!.............. Thank You so Very Much!....This has made my entire week!!!

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Glad to hear it!

  • @bmxguy
    @bmxguy 3 ปีที่แล้ว +3

    You are the man!! Merry Christmas, thanks for all the help along the way.

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว +1

      Thanks, you too!

  • @MitraElectronics
    @MitraElectronics 3 ปีที่แล้ว +1

    Thank you, I am also from India. Highly appreciate your tutorial

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Glad it was helpful!

  • @Youssouf_Maroci
    @Youssouf_Maroci 3 ปีที่แล้ว

    I have this problem
    $ git push
    fatal: No configured push destination.
    what's wrong!!!!

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Looks like you didn't set up github

  • @chuksedwinchris7178
    @chuksedwinchris7178 3 ปีที่แล้ว

    God bless you man, yours is the first video i've followed without errors or this topic; you just earned a fan cos i clicked the subscribe button bro!

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Awesome, thanks!

  • @furkanesen
    @furkanesen 2 ปีที่แล้ว +3

    NOTE: Git has changed it's "master" branch to "main".
    So if you are getting error with "git push heroku master", try "git push heroku main". This might fix your problem.

  • @ahmetgenc1025
    @ahmetgenc1025 4 ปีที่แล้ว +1

    pozitif bir enerjiyle anlatmış olduğunuz bütün dersler için çok teşekkür ederim. (thank you so much.)

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      You're welcome!

  • @TheLinguists
    @TheLinguists 3 ปีที่แล้ว +2

    Finally a tutorial that worked for me! Thanks

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Glad you enjoyed it!

  • @nezhatnour2462
    @nezhatnour2462 2 ปีที่แล้ว

    I tried to push my event website with Heroku Webhost which I created with Django Wednesday, and It has different STATICFILES_DIRS!! How can I fix it? It says STATICFILES_DIRS setting does not exist. Thanks again for wonderful videos!

  • @Conormcnproductions
    @Conormcnproductions 2 ปีที่แล้ว

    thanks for the great fast-paced tutorials, it means a lot

  • @Venom-ne4ox
    @Venom-ne4ox 4 ปีที่แล้ว +1

    Great video, thank you. I have a question. Why we ran pip install python-decouple? It seems that we didn't use it anywhere, am l wrong?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Yes, you're wrong. The heroku hosting uses it and requires it.

  • @ryan_0337
    @ryan_0337 4 ปีที่แล้ว

    I really appreciate the fact that your listen the request of your community which follow you :)

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      It's what I'm here for!

  • @michaelolu4752
    @michaelolu4752 4 ปีที่แล้ว +1

    Thanks a lot man...I finally did it after so many errors!!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Glad I could help

  • @Marco110981
    @Marco110981 หลายเดือนก่อน

    Hi. Your video tutorial REALLY helped me. Thank you. I'm just one step away from what I think could be a final setup version.
    That would be setting debug=False and solving the 500 response error.
    Would you do a tutorial on how doing that? Thank you so much again

    • @Codemycom
      @Codemycom  หลายเดือนก่อน

      I rarely set that thing to false...

    • @Marco110981
      @Marco110981 หลายเดือนก่อน

      ​@@Codemycomany chance to have a video tutorial on how to set that to false, and have that running on heroku? That is the problem I'm facing right now....

  • @reniboyanova9388
    @reniboyanova9388 ปีที่แล้ว

    Where is Database? I am with pycharm and I can't understand how and is it need to configure it? Also I don't see about Allowed_hosts Could you help me, please?

  • @sartajjamalchowdhury5281
    @sartajjamalchowdhury5281 3 ปีที่แล้ว

    Thank you ! Finally deployed my first django app c":
    It's looking bop!

  • @tudorcozma6781
    @tudorcozma6781 4 ปีที่แล้ว +1

    Thank you, John, for what are you doing for as.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Happy to help! Glad you're enjoying the videos!

  • @687r45dfg
    @687r45dfg 4 ปีที่แล้ว +3

    Exactly 5K Subscribers In About 15 Days. You Are Great. Keep Growing

  • @aaronknutson9918
    @aaronknutson9918 4 ปีที่แล้ว

    just wanted to give a heads up the forms do not work we did not set up the email sign in info for heroku to use. also i can navigate to the page but when i try to access it from a phone or tablet i get an error about not having a secure connection.

  • @mihaelacostea5783
    @mihaelacostea5783 2 ปีที่แล้ว

    Hi there, what should the destination for the Git Push be? The link to the repository I guess? Im required a destination when im pushing to Git.

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      You need to go back and watch the video where I set up git and github, you did something wrong.

  • @vikashprasad6157
    @vikashprasad6157 4 ปีที่แล้ว +1

    Thank you john 4 such a awesum tutorial..☺️👍

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      My pleasure!

  • @sahilkulria7325
    @sahilkulria7325 ปีที่แล้ว +1

    Please tell us how we can store the data of website deployed on heroku in excel files in our computer

    • @Codemycom
      @Codemycom  ปีที่แล้ว

      There's no real way to easily do that...why would you want to? Just use a database

    • @sahilkulria7325
      @sahilkulria7325 ปีที่แล้ว

      Not in real time, I want to do it once.
      I have deployed a website on heroku which uses heroku postgres database.
      I want to download all the data and deploy my website on another platform with all this data.

  • @hibas7568
    @hibas7568 4 ปีที่แล้ว +1

    Hii, i'm creating a simple dynamic dental website for a client, I was able to create it smoothly watching your videos. However I'm really confused if I should choose the $7 hobby plan or the standard plan. Could you please share your expertise on this.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +3

      It doesn't matter. It's a matter of how much traffic the site will get. Start cheap, you can change it later

  • @User-lc4zo
    @User-lc4zo 3 ปีที่แล้ว

    messing something up with heroku, will try some other full deploy soon. Thank you for this course sir!

  • @habiborrahaman4531
    @habiborrahaman4531 3 ปีที่แล้ว +2

    hello sir my image upload and my image show its fine, but 1 day after my image not showed. but why this issu, please tell me

    • @greetingsgentlemen.8179
      @greetingsgentlemen.8179 3 ปีที่แล้ว

      The issue is, Heroku does not support user uploaded files. The best way to do this is to create a AWS account and select S3, from there you can follow this tutorial from Corey -- > th-cam.com/video/kt3ZtW9MXhw/w-d-xo.html

  • @25_deepkumargoenka77
    @25_deepkumargoenka77 2 ปีที่แล้ว

    Will the SSH Key different for all the Django Projects or it will be the same key? Means do I have to generate SSH Key whenever I host a Django Project from my machine?

  • @basavarajpatil9821
    @basavarajpatil9821 3 ปีที่แล้ว

    I have already connected my django to postgre db before pushing to Heroku then what configuration I have to apply so my db to hosted live on heroku

  • @matex600
    @matex600 2 ปีที่แล้ว

    hi John my dentist contact email throws an error 500 when I try to enter details and send the mail

  • @marcinwozniak8184
    @marcinwozniak8184 3 ปีที่แล้ว

    Hey friend i have question. Why are you installi those libraries into pip and not into virtual env?

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      pip does install them into virtual env. That's what pip does. that's HOW you install them into the virtual env.

  • @silaskanku7377
    @silaskanku7377 ปีที่แล้ว

    Hello there Codemy.
    I'm struggling to solve this problem and i was hoping that i may get some help. everytime i deploy my project to heroku using the step in the video, i notice that my sqlite3 databse is deleting content which i post after deployment. how do i deploy my updated project codes without erasing content from the database?

    • @Codemycom
      @Codemycom  ปีที่แล้ว +1

      you can't use sqlite on heroku, use postgres

  • @johanneskrugersoftwaredeve9408
    @johanneskrugersoftwaredeve9408 4 ปีที่แล้ว +3

    I have an Error in the last step, when I type in: $ git push heroku master, i get this error and i cannot find a solution: No default language could be detected for this app.
    remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
    Could someone please help me this that? Thank you very much, great Tutorials!
    edit: I solved the error, these are my steps:
    git add .
    git commit -am "another commit"
    git push heroku master

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      Yes. you always have to save your code to git before you push to heroku...

  • @mz5511
    @mz5511 ปีที่แล้ว

    If in the future you want to change something in your website . How you gonna update the website in the heroku?

    • @Codemycom
      @Codemycom  ปีที่แล้ว

      In the same exact way. Change it locally and then push it to heroku as usual

  • @Python_Hacks
    @Python_Hacks ปีที่แล้ว

    I can only login to heroku using windows terminal. Why can't I get pass the '' heroku: Press any key to open up the browser to login or q to exit:'' in git bash it freezes here. Any sugggestions? Everything is up to date....

    • @Codemycom
      @Codemycom  ปีที่แล้ว

      Don't think it's freezing...check your web browser....it probably opened there. Then control+c to break the terminal.

  • @ShubhamYadav-rd1mv
    @ShubhamYadav-rd1mv 3 ปีที่แล้ว +1

    Thanks a lot man, it took me time, but I did it.
    Happy New Year 🎉

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Happy new year!

  • @benchatronicsbenchatronics4641
    @benchatronicsbenchatronics4641 2 ปีที่แล้ว

    Thanks! that was great, i have successfully uploaded my app using your steps. awesome but i have a question how can i manage or edith my apps on heroku? or how can i post with going to the django admin

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      You go to the admin page in the same way on heroku, except instead of the url being localhost/admin it will be your heroku url/admin. To edit the app...make your code changes locally on your computer as always, then push the app again to heroku.

  • @Storyscapes666
    @Storyscapes666 2 ปีที่แล้ว

    You are the best man.. Thank you ❤

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      Thanks for watching!

  • @swapnilshrishrimal4520
    @swapnilshrishrimal4520 4 ปีที่แล้ว

    Thank you for this helpful tutorial. Can't thank you enough already. I have deployed Django app on heroku and is working well and good. Only thing I noticed is that when I access the URL or website on mobile the site does not load properly and needs some tweaks to make it compatible for all devices. Is it possible for your to share some insight to do so ? Once again, thanks a lot for your tutorials.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Is your site designed to be mobile ready?

    • @swapnilshrishrimal4520
      @swapnilshrishrimal4520 4 ปีที่แล้ว

      @@Codemycom No, I don't think it is. I just used free template available online and created a website. I don't have any idea about making website mobile ready.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      @@swapnilshrishrimal4520 Usually the template does that for you

    • @swapnilshrishrimal4520
      @swapnilshrishrimal4520 4 ปีที่แล้ว

      @@Codemycom Okay, I think then template itself is not compatible for all devices. Anyway thanks for your help.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      @@swapnilshrishrimal4520 could be

  • @anveshreddy1461
    @anveshreddy1461 3 ปีที่แล้ว

    u r like walter white from breaking bad 🤣🤣❤❤

  • @mr.bubbles9465
    @mr.bubbles9465 2 ปีที่แล้ว

    I love the fact that u can see a folder called "bs" on his desktop at 5:30

  • @prasangaprix2133
    @prasangaprix2133 2 ปีที่แล้ว +1

    Is there any other way to the host?, LIke normal hosting way..
    e.x - hostinger

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว +1

      Sure, but I don't have videos on that.

  • @dyhia9075
    @dyhia9075 3 ปีที่แล้ว

    thaaaanks a million tiiiiiiiiime . .PS for me it was git push heroku main and not git push heroku master , because the thing in blue was main.

  • @gokulreji4253
    @gokulreji4253 3 ปีที่แล้ว

    if I have any updates on my website, how to update that stuff to Heroku, can I do this all thinks once again?

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Change it locally, save to git, and push it to heroku in the same way. git push heroku master

  • @MMD-vd6ze
    @MMD-vd6ze 3 ปีที่แล้ว

    Thank you john for helping us build and host our very own website! But I'm experiencing a bug right now that I don't have a fix for. Whenever I push the code to heroku and refresh the site I get an error saying "TemplateDoesNotExist". I searched far and wide for a fix but never found any. Could you help me out?

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Is your template file in the right place?

    • @MMD-vd6ze
      @MMD-vd6ze 3 ปีที่แล้ว

      @@Codemycom Yeah it was at the same directory as your templates files. Though I managed to fix it by making a new folder inside the templates folder and store the website files inside that folder. I can't believe you replied though, never thought you'd reply to an old video that was months ago. Thanks for the great videos though. Helped me out alot :)

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      @@MMD-vd6ze Glad you got it sorted out :-)

  • @nezhatnour2462
    @nezhatnour2462 2 ปีที่แล้ว

    Hi. I keep getting this message for push git Heroku : HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว +1

      You skipped a step in the video.

  • @harddrive7663
    @harddrive7663 ปีที่แล้ว

    Hi sir. I followed everything you said but at the end of it, heroku returned a message 'No module named '_tkinter'.. Can you tell me how to fix this issue ?
    When i checked it, tkinter is used by Pillow

    • @Codemycom
      @Codemycom  ปีที่แล้ว

      There should be no reference to Tkinter anywhere, and no, Pillow does not use Tkinter. You likely have not used your virtual environment correctly.

    • @harddrive7663
      @harddrive7663 ปีที่แล้ว

      @@Codemycom last question sir. I did what you said and everything works fine, until heroku cannot read my django models.
      Any idea what causes this problem sir? Or how to fix it ?
      I cannot find an answer on google.
      Thanks in advance sir :)

    • @harddrive7663
      @harddrive7663 ปีที่แล้ว

      I fixed it sir. Thanks a lot sir :))

  • @sriram9786
    @sriram9786 4 ปีที่แล้ว

    Well explained sir love you so much

  • @allinone-mx9cm
    @allinone-mx9cm 4 ปีที่แล้ว +1

    No matching distribution found for pywin32==228 (from -r /tmp/build_6fdd2b83/requirements.txt how to solve sir

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      You'll have to copy the exact error to Google and search

    • @ThoratGanesh
      @ThoratGanesh 3 ปีที่แล้ว

      I am also getting same error if you know how to solve it then please reply.

  • @exceptionalfaruk7388
    @exceptionalfaruk7388 4 ปีที่แล้ว +1

    Excellent. Great work

  • @fakeavangchhia3131
    @fakeavangchhia3131 ปีที่แล้ว

    after i 'heroku keys:add' it stuck how would i do

  • @ghhussainwani6633
    @ghhussainwani6633 2 ปีที่แล้ว

    how can we connect this project with postges and serve using nginx

  • @yanis2183
    @yanis2183 4 ปีที่แล้ว +1

    amazing tutorial, thank you so much !

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      You're very welcome!

  • @BikiniGyat
    @BikiniGyat 3 ปีที่แล้ว

    Thank you so much! you have no idea how many lives your impacting! Continue doing your amazing work.

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Thanks! I will :-)

  • @Televizorcameraica
    @Televizorcameraica 2 ปีที่แล้ว

    Hello, when I'm importing django_heroku it appears this error: "Import "django_heroku" could not be resolved"
    requirements.txt:
    asgiref==3.5.2
    dj-database-url==0.5.0
    Django==4.0.4
    django-environ==0.8.1
    django-extensions==3.1.5
    django-heroku==0.3.1
    graphviz==0.20
    gunicorn==20.1.0
    numpy==1.22.4
    pandas==1.4.2
    psycopg2==2.9.3
    pydot==1.4.2
    pyparsing==3.0.9
    python-dateutil==2.8.2
    python-decouple==3.6
    pytz==2022.1
    six==1.16.0
    sqlparse==0.4.2
    touch==2020.12.3
    tzdata==2022.1
    values==2020.12.3
    whitenoise==6.2.0
    Do you know why the django_heroku appears not to work? Thank you

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว +1

      are you using virtual environments correctly?

  • @ganeshthorat2912
    @ganeshthorat2912 3 ปีที่แล้ว +1

    Application error
    An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
    heroku logs --tail
    can any one suggest me how to resolve it

  • @AKBaconful
    @AKBaconful 4 ปีที่แล้ว +1

    when i put my site online, it wont load a few of my images. the site worked offline without problems but now some of my content wont load.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Run the command: heroku logs
      and see if there are any errors.

    • @AKBaconful
      @AKBaconful 4 ปีที่แล้ว

      @@Codemycom it only says: Not Found: /*path*. but all my img are in the same folder and i didnt change them. i also checked github and all my file are uploaded

  • @mauriceyang937
    @mauriceyang937 3 ปีที่แล้ว

    How do I specify which ssh keys to use for heroku? I created multiple ssh keys, one for each project, so how do I do it?

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      You don't. You only need one ssh key on your computer

  • @derrickwilliam1009
    @derrickwilliam1009 3 หลายเดือนก่อน

    Thanks so much, Life saver!!

    • @Codemycom
      @Codemycom  3 หลายเดือนก่อน

      Welcome!

  • @HuyNguyen-os1gh
    @HuyNguyen-os1gh 4 ปีที่แล้ว

    Thanks you for your ytb video :)
    From Vietnam with love 🇻🇳❤️

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      Thank you too!

  • @Christian-rj2zq
    @Christian-rj2zq 3 ปีที่แล้ว

    I get an application error saying: NameError: name 'Django_heroku' is not defined ? :(

  • @codingbyday1083
    @codingbyday1083 4 ปีที่แล้ว

    I published my app on Heroku. Everything worked, static files migrations etc. But few hours later I dont see the app anymore just blank screen. Tryed kaffeine to ping it every 30min, its says its awake but I dont see it. How do I solve this?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      In your terminal type: heroku logs
      to see what's going on

    • @codingbyday1083
      @codingbyday1083 4 ปีที่แล้ว

      @@Codemycom I turned off debug mode off, when I turned it on I saw it was an application error that I managed to solve. Client paid, app is online. Thank you, you are awesome! And we look exactly the same lol

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      @@codingbyday1083 awesome lol

  • @whitebird365
    @whitebird365 4 ปีที่แล้ว

    Thank you very much John! You are really the BEST teacher.. God bless you.
    I have a issue with sending a message from the website (It shows an error in the website with a critical security alert in my gmail) and it was working fine before hosting the app!! Please what can I do to fix the problem?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      I'm not sure...email is tricky and it could be many things...you'll have to Google the errors...

    • @omurkanabaskanov6788
      @omurkanabaskanov6788 4 ปีที่แล้ว

      Whit bird, I came accross with the same issue. After deploying with Heroku sending messages from the website stopped working. Here is what helped me. Visit github.com/nodemailer/nodemailer/issues/611 and find 'shubham-awr commented on 17 Jan 2018' who wrote 'Try this,
      accounts.google.com/b/0/DisplayUnlockCaptcha
      This will allow machines to access your gmail remotely.' I my case it helped almost immediately.

  • @habiborrahaman4531
    @habiborrahaman4531 3 ปีที่แล้ว

    hello not working my pc, i use mongo db data base and django, how to deploy to heroku please, make a video

  • @yanis2183
    @yanis2183 4 ปีที่แล้ว

    everything worked well, but i realised that the DEBUG is set to TRUE which is not good in production, when i turn the DEBUG to FALSE and add the set the ALLOWED HOSTS it is giving me an error 500 or it is only loading the html without the static files

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      Just leave the debug to true if you can't figure it out

    • @yanis2183
      @yanis2183 4 ปีที่แล้ว

      @@Codemycom thanks for answering, i found out how to do it here = th-cam.com/video/GMbVzl_aLxM/w-d-xo.html

  • @nishantrao5600
    @nishantrao5600 3 ปีที่แล้ว

    This helped a lot! Thanks!

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      You're welcome!

  • @hello-my6ot
    @hello-my6ot 2 ปีที่แล้ว

    Hi John
    Once you deployed your website on Heroku, how can you update it?

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      The same way. Make your changes locally, then push to heroku in the same way.

  • @abdullashafi580
    @abdullashafi580 3 ปีที่แล้ว

    sir I'm getting this error "ModuleNotFoundError: No module named 'my_app.urls' " Why this is happening ?please help

    • @enriquecipriano1346
      @enriquecipriano1346 2 ปีที่แล้ว

      you probably dont have that app listen in ur installed apps in the setting .py of youre main project files

  • @dimensionalilusions4520
    @dimensionalilusions4520 3 ปีที่แล้ว

    I don't think dentist is your app name since it has settings.py. So,It is to be your project's name.

  • @oveyo8254
    @oveyo8254 3 ปีที่แล้ว

    I don't recieve emails when my site is hosted on heroku, only when it's on my computer. Any help?

    • @oveyo8254
      @oveyo8254 3 ปีที่แล้ว

      The problem was that I forgot to config vars on heroku!

  • @ИгорьКузнецов-т8р
    @ИгорьКузнецов-т8р 4 ปีที่แล้ว

    Hi! Before we push up our app to heroku do we need in Settings file change Debug to False?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      You can, but don't have to. I didn't in the video and it worked...right?

    • @ИгорьКузнецов-т8р
      @ИгорьКузнецов-т8р 4 ปีที่แล้ว

      @@Codemycom Yes it works correctly! I just wanted to clarify this moment. Coz I could missed it. Now just trying to solve problem with Heroku CLI. It gives me error when I try to install it on my PC. Hope it won't become this evening headache ;)

  • @mohdalkhasawneh3570
    @mohdalkhasawneh3570 2 ปีที่แล้ว

    'git push heroku main', this command worked with me.
    I got an error when a write this command 'git push heroku master'

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      yes, it's main now.

  • @pramodhvedula8314
    @pramodhvedula8314 3 ปีที่แล้ว

    Application error
    An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
    heroku logs --tail after deploying i am seeing this since last 4 days cant fix it can any one can help me

  • @ryan_0337
    @ryan_0337 4 ปีที่แล้ว

    Do you know how to use AWS amazon web services for django app espcially for windows ?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      No, I don't really use AWS for much

  • @AnshSharma747
    @AnshSharma747 2 ปีที่แล้ว

    Does the admin panel work with heroku?

  • @bleandertutorialske6160
    @bleandertutorialske6160 5 หลายเดือนก่อน

    Hi, is there a problem when i host my project with my email password and the django security key in heroku

    • @Codemycom
      @Codemycom  5 หลายเดือนก่อน

      Sorry, I don't know what you mean.

    • @bleandertutorialske6160
      @bleandertutorialske6160 5 หลายเดือนก่อน

      @@Codemycom In the video, we did not hide our django security key and our email passwords. Is it safe to host them in heroku, or is there a way to host them while still keeping them safe.

    • @Codemycom
      @Codemycom  5 หลายเดือนก่อน

      @@bleandertutorialske6160 They're fine on heroku, people can't see your code there...right? So long as you don't push them to github, you should be fine. You can always set them up as environmental variables if you're worried (google it).

    • @bleandertutorialske6160
      @bleandertutorialske6160 5 หลายเดือนก่อน

      @@Codemycom Thankyou John, very helpful.

  • @vignxs
    @vignxs 3 ปีที่แล้ว +1

    I trying to deploy my app since last week
    Finally my app deployed because of you
    But my css file and images still not loading
    Help me out sir

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      What do you mean, not loading? In the terminal, run the command: heroku logs

  • @lorimedicenter4439
    @lorimedicenter4439 2 ปีที่แล้ว

    well done ! could you make video about wordcloud with python

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      Sorry, I don't know what that is

  • @sehajdeepsingh6522
    @sehajdeepsingh6522 3 ปีที่แล้ว

    Sir how to make a Procfile on powershell as I don't have a bash terminal

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      git-scm.com the git terminal is free. get it.

  • @TechWithSabri
    @TechWithSabri 4 ปีที่แล้ว

    thank you so much sir for your help
    you are the best sir

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      I appreciate it!

  • @wiki-infodevelopment3369
    @wiki-infodevelopment3369 4 ปีที่แล้ว

    git commit -am 'tweaked app for heroku'
    it gave me this error?
    fatal: paths 'app ...' with -a does not make sense

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      that command didn’t give you that error

    • @michaelolu4752
      @michaelolu4752 4 ปีที่แล้ว

      git commit -m "tweaked app for heroku"

  • @prenomnom5637
    @prenomnom5637 3 ปีที่แล้ว

    Man, you are great.

  • @shilpthapak7823
    @shilpthapak7823 3 ปีที่แล้ว

    Hey, thanks fo this video.
    I watched it so many time to upload all my projects.
    However, one of my project failed because of this error:
    django.db.utils.ProgrammingError: cannot cast type time without time zone to timestamp with time zone.
    Can't resolve the error through stackolverflow as well.
    Hope you can help me with this.

    • @bencipherx
      @bencipherx 3 ปีที่แล้ว

      Do you get the issue locally?

    • @shilpthapak7823
      @shilpthapak7823 3 ปีที่แล้ว

      @@bencipherx No, locally everything is fine.

    • @bencipherx
      @bencipherx 3 ปีที่แล้ว

      Okay, the issue is with your code, and the timezone. Looks like you're saving a time value into dB, is that correct?. A look into the code might help. Can you confirm if the time saved into your dB is the same as your actual time.

    • @shilpthapak7823
      @shilpthapak7823 3 ปีที่แล้ว

      @@bencipherx Yes I am saving the time in my sqlite db

    • @shilpthapak7823
      @shilpthapak7823 3 ปีที่แล้ว +1

      @@bencipherx Thanks a lot Ben!

  • @ДенисМаслов-у2е
    @ДенисМаслов-у2е 3 ปีที่แล้ว

    Thank you, you are awesome!!

  • @akinnagbekolawole610
    @akinnagbekolawole610 4 ปีที่แล้ว

    Please someone explain what it is to turn virtual on and also switch to master branch? Any help at all?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      What don't you understand? I have several videos on setting up and using git on this channel

  • @ayushtripathi2605
    @ayushtripathi2605 3 ปีที่แล้ว

    Taklu Sir 😆😆😆 Your Videos are nice

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Thank you so much 😀

  • @noorrida8895
    @noorrida8895 4 ปีที่แล้ว

    i've followed the same steps but every time i try to deploy it gives me APPLICATION ERROR/ METHOD NOT FOUND even after returning successful deployment message. Kindly help!!!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Can you google the 'exact' error you get?

    • @noorrida8895
      @noorrida8895 4 ปีที่แล้ว

      @@Codemycom There isn't an exact error, it deployed successfully but everytime it shows application error

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      @@noorrida8895 check your heroku logs, in the terminal, type: heroku logs
      there will be an error of some kind

  • @dsons
    @dsons 2 ปีที่แล้ว

    do u need to do the ssh step?

  • @StudentProjectsinfo
    @StudentProjectsinfo 3 ปีที่แล้ว

    i am getting the error please tell to me how to overcome this error
    C:\Users\akuma\Desktop\deployment\batch3>git push heroku master
    Enumerating objects: 40, done.
    Counting objects: 100% (40/40), done.
    Delta compression using up to 8 threads
    Compressing objects: 100% (35/35), done.
    Writing objects: 100% (40/40), 8.85 KiB | 431.00 KiB/s, done.
    Total 40 (delta 7), reused 0 (delta 0), pack-reused 0
    remote: Compressing source files... done.
    remote: Building source:
    remote:
    remote: -----> Building on the Heroku-20 stack
    remote: -----> Determining which buildpack to use for this app
    remote: ! No default language could be detected for this app.
    remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
    remote: See devcenter.heroku.com/articles/buildpacks
    remote:
    remote: ! Push failed
    remote: Verifying deploy...
    remote:
    remote: ! Push rejected to batch3-adi.
    remote:
    To git.heroku.com/batch3-adi.git
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'git.heroku.com/batch3-adi.git'

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      The error is telling you what's wrong and giving you a link that you can click on to learn how to fix it

  • @endorfineater
    @endorfineater 3 ปีที่แล้ว

    Thanks a lot ♥

  • @tharukerajapaksha3652
    @tharukerajapaksha3652 2 ปีที่แล้ว

    Thank you sir

  • @arieljose2920
    @arieljose2920 2 ปีที่แล้ว

    THANK YOU

  • @damus6665
    @damus6665 2 ปีที่แล้ว

    Nevermind, when the app was released... I got application error... I think I'll contact heroku to show them my logs... I cried :(

  • @marcuswright6263
    @marcuswright6263 2 ปีที่แล้ว

    Is it ok to disable static files?

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      It's coding...it's ok to do whatever you want

  • @hiralalkumhar8121
    @hiralalkumhar8121 2 ปีที่แล้ว

    why do we have to switch to virtual environment

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      Because it's best practices.