Heroku Postgres Connection | Django (3.0) Crash Course Tutorials (pt 24)

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025
  • Check out my Complete Django course! dub.sh/NvGboTI
    Connection Django-Heroku app to PostgreSQL database to heroku default and AWS RDS instance.
    Follow me on Twitter: / dennisivy11
    LinkedIn: / dennis-ivanov
    Live Demo: dennisivy-crm....

Комментарии • 139

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

    Don't forget to check out my Complete Django course! dub.sh/NvGboTI

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

    You just don't know how much of a life saver you are. Been struggling to load my fixtures in heroku for 3 days now. Who knew it was this easy🤦🏾‍♂️.

  • @haythamkenway8343
    @haythamkenway8343 4 года назад +39

    Best Django course on youtube

    • @DennisIvy
      @DennisIvy  4 года назад +2

      Thank you! So awesome to hear that :)

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

      i realize I am quite off topic but does anyone know of a good place to stream newly released movies online?

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

      @Louie Dustin i would suggest FlixZone. You can find it by googling :)

  • @nazishaslam9576
    @nazishaslam9576 4 года назад +3

    This is by far the best tutorial on django live app I've ever watched. It not only covers the basic django web app development, but also many of the important things a web developer should know like AWS, database platforms (postgres, pgadmin etc), heroku etc. Just loved it. Thanks Dennis.

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

    My posts kept deleting because they were stored on the default SQLite database and I spent hours looking for the reason why and then looking for how to switch to Postgres. This video was the one that finally helped me solve it (I wasn't migrating to the postgres database). Thank you so much!

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

    best thing ever, has been 3 years still nothing can beat this tutorial. Maybe for the next 5 years as well!

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

    Teaching is really a call to you... I mean it. You really know what you're talking about and how to explain concepts, even to those who are new to them such that they understand clearly.

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

    cant believe how many time your videos has helped me i wish i made alot of money to be able to donate to you

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

    This is the best django tutorial I've come across

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

    Thanks to your videos in this series, I've been able to create the app of my dreams. I always thought I'd have to hire an expensive developer and pay thousands of $, but I was able to create something pretty good from scratch. Your content is incredible, man.
    Thanks, Dennis! 😄

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

    Keep your head up King. You saved me from a ton of frustration.

  • @brenninyoung487
    @brenninyoung487 4 года назад +7

    Would love the next video! Thank you for all you do! Cant wait for the final product... this has really taught me a lot as I have just got into using python. Great real world project!

    • @DennisIvy
      @DennisIvy  4 года назад +4

      Thank you :) I'll have to finish this up with a custom domain and pagination.

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

      @@DennisIvy did you end up making that video on a custom domain name?

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

      @@erch3rejc986 not for this series but yes, it’s a stand alone video that will get the job done

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

    best tutorials ever in youtube for django

  • @matthieuo39
    @matthieuo39 4 года назад +12

    I'm waiting for the next video thanks for everything !

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

    Finished!!!! Yeaaah . Best Django tutorial ever. Best Instructor Dennis! wait for the next one.

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

    Great series Dennis. Really really well put together. Even as an experienced django developer, I learned quite a lot from the series. One point to note though. Heroku postgres is also production-ready. You know heroku as whole does not have their own proprietary infrastructures/servers. Their entire platform runs on aws EC2. Using aws' direct RDS may have a few more perks, but using heroku's postgres will be just fine.

  • @computinginfo3187
    @computinginfo3187 4 года назад +2

    My notification is on. hope to have the domain name video soon. Thanks again!

  • @PRASHANTKUMAR-wd9ww
    @PRASHANTKUMAR-wd9ww 4 года назад

    Dennis you are just awesome.keep making such type of series.

  • @yellowmcgee
    @yellowmcgee 4 года назад +2

    This has been an amazing tutorial series! Thank you for all the work you put into providing these types of resources for the general viewer. Will there be that last video about linking the project to a different domain name, etc?

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

    one of the best django tuto i have seen

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

    This has been an excellent tutorial.🤘
    Thank you very much for sharing!!!

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

    Best ever series :) thank you so much Dennis. I look forward to more videos and courses

  • @mdbelalhosen5898
    @mdbelalhosen5898 4 года назад +2

    you are just awesome !!!... i watched all the videos of this playlist at once :) thanks a lot man. waiting for next video on custom domain.

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

      Good work Dennis, need that video on custom domain ASAP. THANKS and keep helping us grow in Python and Django.

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

    Thank you Dennis for the amazing crash course! Loved the explanations! Wohooo finished! Looking forward to the next series!

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

    Thanks fam this allowed me to finally finish deployment

  • @TheAremoh
    @TheAremoh 5 лет назад +1

    Denis is a life saver.

    • @DennisIvy
      @DennisIvy  5 лет назад +2

      Haha thanks! Glad I can help :)

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

    Well done Dennis, you're a legend

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

    Do we need to move it to AWS? Can we just leave it as it is after migrating the changes at 11:54 .

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

    you videos are great dennis

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

    Why didn't you show how to enable the S3 bucket for deployment.

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

    Hi Dennis, I can't access on the admin site on production (heroku). The error message is Server Error (500). Any advice?

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

      Maybe change debug to true and see what the error is

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

      @@marekgorski4005 with debug true I dont have any errors. Also when the debug is false only the admin site has the problem.

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

    The django admin panel and my site doesnot load the styles

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

    Thank Yo So Much Dennis Sir! these tutorials are really helpful

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

    Very basic question guys - does deploying to Heroku (based on django's default DB settings not work? IOW - is this above only for production type deployments?

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

    Hey, Dennis, I am developing a application wherein I have two model, one is company and another is engagement. I inherit company model in engagement model. Now when I tried to add data in engagement form, from front end am I am able to see other user added company as well in dropdown menu. I want only user who added company can only see his own company while filling the engagement form. I am using function based view. Waiting for your reply. Please advice.

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

    How can we check the tables from the Heroku Postgre Database?

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

    Thanks, man you saved me. I was sweating about why my rest API is returning empty lists then I changed the URL and it started working as it was on the local host.

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

    Thank you so much! It was great serie to learn!

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

    Hi Dennis you didn't mention about AWS how we can work with that ????

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

    What's the reasoning behind having the local database to be sqlite and the heroku database be postgresql? Seems like would you want those to be in sync with each other.

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

    how to deploy my project as local server if i want to make my project in company not in the internet please tell me how

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

    Really a master. Thanks for sharing your knwoledge

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

    This is a really helpful tutorial. Thanks for sharing!

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

    What's the advantage of using a database on AWS compared to the one Heroku provides for you? Also could you upload a video showing how to migrate all the data from the sqlite database to the postgres one?

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

    You are the best. Keep it up

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

    Thanks! This was really helpful!

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

    Hello dennis. what is wrong with the heroku DB ?why did you change it to RDS?

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

    Dennis why didn't you choose aws for hosting the django project?

  • @RM-ox6fn
    @RM-ox6fn 4 года назад +1

    Ty for all Dennis

  • @TrungNguyen-kt3lt
    @TrungNguyen-kt3lt 3 года назад

    Very helpful and precise tutorial. Thankyou!

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

    when I run the command "git remote -v" it shows me that it isn't a git repository...now that idk in which cmd prompt you ran these commands. may you help me with this ?

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

    how to do you route the profile pictures to a certain folder in s3?

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

    god bless you man, god bless you !!!

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

    a just finish the series! It was Amazing. Tnx :)

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

    My static files are causing me a big problem when I put Debug = False

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

      Insert
      STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
      in your settings.py.
      and then use
      python manage.py collectstatic

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

    where this crm_live came from ?

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

    Hi Dennis, I have enrolled in your ecommerce tutorial as well done most of the others. I am struggling with deploying my web-portfolio.
    I have tried aws and made all my object public as well used the bucket policy in permissions. My static web-app deploys but no images.
    I tried using heroku and making an index.php and composer.json file and again it deploys but no images. Please could you help me i would really appreciate it.

  • @malikbehzad4945
    @malikbehzad4945 11 месяцев назад

    Thank you, it was a great help!

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

    Thanks for the Django tutorial.

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

    How to change API endpoints while deploying to public when localhost is there in endpoints , eg : 120.x.x.x:8000/to-dos , how to change this when deploying ? Won't it affect the end point for get and post ? Pls help anyone ;

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

    Do you use containers and orchestration for Django applications? If so can you upload the CICD process?

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

    amazing content Dennis thanks

  • @BhatiJhabarSingh
    @BhatiJhabarSingh 4 года назад +2

    sir i am learning django to integrate Machine learning algo at the backend for that should i learn more django or is it enough?

    • @DennisIvy
      @DennisIvy  4 года назад +2

      That's a good question. Honestly I do not know enough to answer directly or explain how. Their should definitely be a way. I'm working with a few people who know machine learning and will try to apply something to a django project. Something with learning users behavior and providing recommendations.

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

      @@DennisIvyok sir and thanks for the reply

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

    Excellent work

  • @BalwantSingh-zt8vx
    @BalwantSingh-zt8vx 3 года назад

    Worked for me, Thank you so much bro

  • @kvnagendra5354
    @kvnagendra5354 5 лет назад

    Hey dennis tnx for effort and keep rocking

    • @DennisIvy
      @DennisIvy  5 лет назад +1

      Thank you my friend :)

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

    Hey Dennis, thank you this has been great! Will you finalize the series or will this be the last video?

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

    hey, Dennis thanks for the series. Somehow I can't manage to bypass the Heroku timeout error. I've followed all your steps but still getting that error! any suggestion?

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

      found the solution. I dont know why but I had to include `amazon RDS CA Certificate` file in my project and update my DATABASE_URL key in Heroku to : postgres://username:password@**.us-east-2.rds.amazonaws.com/dbname?sslrootcert=config/amazon-rds-ca-cert.pem&sslmode=require

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

    Create Customer not working????

  • @joshuablue-jack
    @joshuablue-jack 3 года назад

    I keep on getting server error (500) help please😥

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

    Hello dennis , i have done your guide and i have uploaded a website and all was fine 3 months now , but the Amazon RDS start charging me and i have to pay like 30$ for previous month . Any ideas how to make it free?

  • @aashayamballi
    @aashayamballi 5 лет назад +2

    Hey Dennis, could you please make a video on implementing django with celery. This would be really helpful. And thank you for all your efforts!

    • @zulqarnainbutt9473
      @zulqarnainbutt9473 5 лет назад +1

      Agree. I also want it.

    • @DennisIvy
      @DennisIvy  5 лет назад +3

      I might do this when I make our chat application. I used channels before but that was so long ago I can remember if I used celery.

    • @aashayamballi
      @aashayamballi 5 лет назад

      @@DennisIvy woah !!! chat application! Can't wait for it...

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

      Wooow!!!!! This super amazing i have been waiting to see Chat project please iveniy hurry up you will never regret it lots fans😍

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

      Ivy*

  • @GabrielRibeiro-xr3bx
    @GabrielRibeiro-xr3bx 4 года назад

    Hey Dennis!
    Would you make videos about realtime applications? Both developing and deploying to Heroku? Cause it really takes us a step further in a sense of businesses we could develop. Thank you very much

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

    Awesome. Thank u so much Dennis

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

    Please make video how to push our local postgress database data on heroku database in Django. I trying using "heroku pg: push localdbname DJANGO_URL
    --app appname" but it says that pg_dump: connection failed because password dont match for the user.....PLEASE HELP

  • @bmariano-me
    @bmariano-me 3 года назад

    Man you helped me a lot you awesome thanks

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

    Thanks man, great stuff

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

    Thanks a lot man ! God bless you !

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

    Really loved this course sir...
    Sir can you please extend this tutorial with a video on converting a functional website to progressive web application (PWA)..

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

    after updating profile picture its not showing... can you help about it pls ????

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

    First of all, many thanks for such a wonderful course! But I, unfortunately, had a problem at the very end: when connecting to AWS, the error was "FATAL: database" crm-database "does not exist" and I can’t do anything about it ... what could be the problem?

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

      Hey do you know the solution?

  • @MOI-su4lx
    @MOI-su4lx 2 года назад

    Hey dennis, I am a developer and I have a django project, which runs the APIs for my project and it will be connected to a react native app.
    So I have a doubt I want only my app to access this API but if I upload it to heroku server the APIs will be universally available, do you have any suggestions on how can I stop this.

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

      use django rest framework

  • @kalelcracker783
    @kalelcracker783 5 лет назад

    all of your videos are awesome, but do you have also for generating reports from the database that you created? tnx

    • @DennisIvy
      @DennisIvy  5 лет назад +1

      Thank you!
      Are you asking about generating reports as in turning database rows into an excel sheet?

    • @kalelcracker783
      @kalelcracker783 5 лет назад

      @@DennisIvy yup, like what you did in JSON Array to HTML and Render HTML to PDF videos.

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

    Thanks Dennis for the course. Can you help me with this issue: Since we don't keep debug true, media files are not served on the deployed app. How can we go about that? An early reply will be appreciated 😀

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

    why django admin is not working on heroku

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

    Thank you for this tutorial ! But after a few time it give me this error on opening images:
    Error parsing the X-Amz-Credential parameter; the region 'eu-west-2' is wrong; expecting 'eu-central-1'

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

      OK ,I solved adding this in settings.py :
      AWS_QUERYSTRING_AUTH = False

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

    Dennis Ivy What color scheme you use at sublime text?

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

    Is this database persistent?

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

    why we don't use Cloudinary.

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

    Yes Dennis, I am asking that you work on a tutorial where we can actually add data from an excel file into our django project because many times a client will actually have some data in an excel file and you want it added into the models for continuity of his data into the system.

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

      Actually, this type of problem is a part of basic computing student knowledge. Learn some more about data bases ( I think starting with LibreOffice and doing stuff like data base for shops is a great idea).
      Here is solution of your problem:
      stackoverflow.com/questions/20039856/import-excel-data-into-postgresql-9-3

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

    Please try to add payment and sms gate way integration

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

    Excellent course
    01/08/2020

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

    thank you for the video

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

    mvp!

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

    thank you !

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

    waiting for next video brother

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

    Iam highly requesting you to make a vedio, How to upload my django site in custom domain and hosting. Please make a vedio!

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

    nice sir..

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

    How much would I pay for hosting my PostgreSQL database and Static Files on Amazon per month roughly? Supposing that my free tier has expired.
    Thanks for the great content Dennis.

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

      Hard to predict but we had a sizable database (Hundreds of thousands of records) and were paying about $250 a month. Watch your billing closely because it can get out of control if you don't set it up right.
      We were overpaying at one point when I forgot to turn down backup frequencies.

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

      ​@@DennisIvy Thanks Dennis. Thank you for your response.
      I want to make things right, but as you said it is hard to predict the cost and I don't want to have any surprises haha
      I am new to this. And there are some questions that are bugging me a little. If you could answer them, that would be amazing.
      So if I understood it correctly, to have a scalable Django project is essential to separate static files, database from the project itself yeah?
      Scalable would be one thousand users or more?
      What would be the problem, for example, of a django project in digitalocean server, using mysqlite in the same server, and media files in an AWS bucket?
      Thank you so much for your videos man, it is really helpful.

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

      @@DennisIvy What color scheme you use at sublime text?

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

    The best one _/|\_👍👍👍