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....
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
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🤦🏾♂️.
Best Django course on youtube
Thank you! So awesome to hear that :)
i realize I am quite off topic but does anyone know of a good place to stream newly released movies online?
@Louie Dustin i would suggest FlixZone. You can find it by googling :)
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.
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!
best thing ever, has been 3 years still nothing can beat this tutorial. Maybe for the next 5 years as well!
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.
cant believe how many time your videos has helped me i wish i made alot of money to be able to donate to you
This is the best django tutorial I've come across
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! 😄
Keep your head up King. You saved me from a ton of frustration.
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!
Thank you :) I'll have to finish this up with a custom domain and pagination.
@@DennisIvy did you end up making that video on a custom domain name?
@@erch3rejc986 not for this series but yes, it’s a stand alone video that will get the job done
best tutorials ever in youtube for django
I'm waiting for the next video thanks for everything !
Finished!!!! Yeaaah . Best Django tutorial ever. Best Instructor Dennis! wait for the next one.
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.
My notification is on. hope to have the domain name video soon. Thanks again!
Dennis you are just awesome.keep making such type of series.
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?
one of the best django tuto i have seen
This has been an excellent tutorial.🤘
Thank you very much for sharing!!!
Best ever series :) thank you so much Dennis. I look forward to more videos and courses
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.
Good work Dennis, need that video on custom domain ASAP. THANKS and keep helping us grow in Python and Django.
Thank you Dennis for the amazing crash course! Loved the explanations! Wohooo finished! Looking forward to the next series!
Thanks fam this allowed me to finally finish deployment
Denis is a life saver.
Haha thanks! Glad I can help :)
Well done Dennis, you're a legend
Do we need to move it to AWS? Can we just leave it as it is after migrating the changes at 11:54 .
you videos are great dennis
Why didn't you show how to enable the S3 bucket for deployment.
Hi Dennis, I can't access on the admin site on production (heroku). The error message is Server Error (500). Any advice?
Maybe change debug to true and see what the error is
@@marekgorski4005 with debug true I dont have any errors. Also when the debug is false only the admin site has the problem.
The django admin panel and my site doesnot load the styles
Thank Yo So Much Dennis Sir! these tutorials are really helpful
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?
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.
How can we check the tables from the Heroku Postgre Database?
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.
Thank you so much! It was great serie to learn!
Hi Dennis you didn't mention about AWS how we can work with that ????
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.
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
Really a master. Thanks for sharing your knwoledge
This is a really helpful tutorial. Thanks for sharing!
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?
Good point
You are the best. Keep it up
Thanks! This was really helpful!
Hello dennis. what is wrong with the heroku DB ?why did you change it to RDS?
Dennis why didn't you choose aws for hosting the django project?
Ty for all Dennis
Very helpful and precise tutorial. Thankyou!
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 ?
how to do you route the profile pictures to a certain folder in s3?
god bless you man, god bless you !!!
a just finish the series! It was Amazing. Tnx :)
My static files are causing me a big problem when I put Debug = False
Insert
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
in your settings.py.
and then use
python manage.py collectstatic
where this crm_live came from ?
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.
Thank you, it was a great help!
Thanks for the Django tutorial.
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 ;
Do you use containers and orchestration for Django applications? If so can you upload the CICD process?
amazing content Dennis thanks
sir i am learning django to integrate Machine learning algo at the backend for that should i learn more django or is it enough?
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.
@@DennisIvyok sir and thanks for the reply
Excellent work
Worked for me, Thank you so much bro
Hey dennis tnx for effort and keep rocking
Thank you my friend :)
Hey Dennis, thank you this has been great! Will you finalize the series or will this be the last video?
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?
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
Create Customer not working????
I keep on getting server error (500) help please😥
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?
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!
Agree. I also want it.
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.
@@DennisIvy woah !!! chat application! Can't wait for it...
Wooow!!!!! This super amazing i have been waiting to see Chat project please iveniy hurry up you will never regret it lots fans😍
Ivy*
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
Awesome. Thank u so much Dennis
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
Man you helped me a lot you awesome thanks
Thanks man, great stuff
Thanks a lot man ! God bless you !
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)..
after updating profile picture its not showing... can you help about it pls ????
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?
Hey do you know the solution?
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.
use django rest framework
all of your videos are awesome, but do you have also for generating reports from the database that you created? tnx
Thank you!
Are you asking about generating reports as in turning database rows into an excel sheet?
@@DennisIvy yup, like what you did in JSON Array to HTML and Render HTML to PDF videos.
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 😀
why django admin is not working on heroku
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'
OK ,I solved adding this in settings.py :
AWS_QUERYSTRING_AUTH = False
Dennis Ivy What color scheme you use at sublime text?
"Mariana" :)
Is this database persistent?
why we don't use Cloudinary.
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.
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
Please try to add payment and sms gate way integration
Excellent course
01/08/2020
thank you for the video
mvp!
thank you !
waiting for next video brother
Iam highly requesting you to make a vedio, How to upload my django site in custom domain and hosting. Please make a vedio!
nice sir..
Thank you!
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.
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.
@@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.
@@DennisIvy What color scheme you use at sublime text?
The best one _/|\_👍👍👍