Heroku Webhosting for Django - Python Django Dentist Website #12

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

  • @vend57
    @vend57 4 года назад +17

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

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

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

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

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

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

      Glad it was helpful!

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

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

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

  • @bmxguy
    @bmxguy 3 года назад +3

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

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

  • @687r45dfg
    @687r45dfg 4 года назад +3

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

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

  • @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  3 года назад

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

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

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

  • @TheLinguists
    @TheLinguists 3 года назад +2

    Finally a tutorial that worked for me! Thanks

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

      Glad you enjoyed it!

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

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

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

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

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

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

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

  • @vikashprasad6157
    @vikashprasad6157 4 года назад +1

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

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

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

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

  • @ShubhamYadav-rd1mv
    @ShubhamYadav-rd1mv 3 года назад +1

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

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

  • @User-lc4zo
    @User-lc4zo 3 года назад

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

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

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

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

  • @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 -- > ruclips.net/video/kt3ZtW9MXhw/видео.html

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

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

    You are the best man.. Thank you ❤

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

      Thanks for watching!

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

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

  • @derrickwilliam1009
    @derrickwilliam1009 3 месяца назад

    Thanks so much, Life saver!!

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

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

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

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

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

  • @yanis2183
    @yanis2183 4 года назад +1

    amazing tutorial, thank you so much !

    • @Codemycom
      @Codemycom  4 года назад

      You're very welcome!

  • @HuyNguyen-os1gh
    @HuyNguyen-os1gh 4 года назад

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

  • @exceptionalfaruk7388
    @exceptionalfaruk7388 4 года назад +1

    Excellent. Great work

  • @sriram9786
    @sriram9786 4 года назад

    Well explained sir love you so much

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

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

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

    This helped a lot! Thanks!

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

  • @ИгорьКузнецов-т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 ;)

  • @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 = ruclips.net/video/GMbVzl_aLxM/видео.html

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

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

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

    well done ! could you make video about wordcloud with python

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

      Sorry, I don't know what that is

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

  • @ДенисМаслов-у2е
    @ДенисМаслов-у2е 3 года назад

    Thank you, you are awesome!!

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

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

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

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

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

    Man, you are great.

  • @TechWithSabri
    @TechWithSabri 4 года назад

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

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

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

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

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

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

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

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

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

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

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

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

    THANK YOU

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

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

    Thank you sir

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

  • @Christian-rj2zq
    @Christian-rj2zq 3 года назад

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

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

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

    Thanks a lot ♥

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

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

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

  • @fakeavangchhia3131
    @fakeavangchhia3131 Год назад

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

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

    Taklu Sir 😆😆😆 Your Videos are nice

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

      Thank you so much 😀

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

    Does the admin panel work with heroku?

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

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

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

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

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

  • @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 3 года назад

      git commit -m "tweaked app for heroku"

  • @vanexatonlio261
    @vanexatonlio261 4 года назад

    thanks a lot!

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

  • @rangabharath4253
    @rangabharath4253 4 года назад

    Thank u so much

    • @Codemycom
      @Codemycom  4 года назад

      You're very welcome!

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

    You deploy with debug=true
    This doesn't make sense because there are much settings and errors when debug=false

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

      exactly and i am struggling with it

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

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