How to Deploy Django App on Heroku with PostgreSQL Database

  Рет қаралды 18,653

Code Aura

Code Aura

Күн бұрын

Пікірлер: 92
@mrwiltofficial
@mrwiltofficial 3 жыл бұрын
Awesome Brother. Almost two days I'm trying to deploy my app. I watched so many videos but nothing works. Your explanation is really awesome and the steps are clear. Expecting more videos on Django framework.
@imaduddinsheikh3546
@imaduddinsheikh3546 3 жыл бұрын
I tried so many reads on Stack Overflow and blogs regarding Heroku deployment on Django apps, but so far your video demonstrated it with perfection. Really thankful for your help.
@codeaura5138
@codeaura5138 3 жыл бұрын
Glad it helped. Share it with your colleagues or friends. And don't forget to subscribe the channel.
@LookNumber9
@LookNumber9 3 жыл бұрын
FINALLY! A Heroku tutorial that's up-to-date and actually works. Thank you!
@codeaura5138
@codeaura5138 3 жыл бұрын
Glad it helped. :D Please, consider subscribing to my channel. More are coming.
@LookNumber9
@LookNumber9 3 жыл бұрын
@@codeaura5138 Persistent images using S3 would be a nice complement to the initial tutorial.
@junglegames6153
@junglegames6153 2 жыл бұрын
Excellent, voice is perfect🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
@roozbehghazavi871
@roozbehghazavi871 3 жыл бұрын
This tutorial saved my day .it was one of the best tutorials for deploying a django app on heroku . i don't know how to show my gratitude. thank you so much
@codeaura5138
@codeaura5138 3 жыл бұрын
Thank you for your kind words. Share the video and Stick around ...happy coding!
@shneursapo86
@shneursapo86 2 жыл бұрын
hey, i just want to say thank you. i spent literall days trying to figure it out, and you showed it all in 15 minutes. i reall appreciate it!!
@codeaura5138
@codeaura5138 2 жыл бұрын
I also struggled to figure it out initially. Once I perceived it, i thought of sharing the concept with the community.. Glad you liked it.l Don't forget to subscribe. Waiting for first 1000. :D
@fahadhos
@fahadhos 2 жыл бұрын
@@codeaura5138 Now not working bro uptade tutorial
@nikhilsingh-xu5mi
@nikhilsingh-xu5mi 2 жыл бұрын
Best video for understanding deployment on heroku
@sanusiabubakr1948
@sanusiabubakr1948 2 жыл бұрын
You really simplified my understanding. Best Heroku deployment tutorial I ever watched... I will be glad if you create one for AWS and Digital Ocean too
@hank86211
@hank86211 2 жыл бұрын
dude i love u u save my life
@guratete
@guratete 3 жыл бұрын
Thanks mate, been stuck on this for a while and it just made sense. Thanks so much.
@alshahriar9939
@alshahriar9939 3 жыл бұрын
This is super. Your explanation is awesome bro. keep it up!
@codeaura5138
@codeaura5138 3 жыл бұрын
Glad you think so!
@sojasminegjerstad4907
@sojasminegjerstad4907 3 жыл бұрын
Thank you for this great tutorial:).
@codeaura5138
@codeaura5138 3 жыл бұрын
You are welcome 😊. Glad it helped you. I would appreciate , if you subscribe to my channel. Trying my best to serve the community.
@pranavarora2511
@pranavarora2511 3 жыл бұрын
Finally, this tutorial worked for me. Thank you so much.
@codeaura5138
@codeaura5138 3 жыл бұрын
You are welcome 😊
@kirannarwade3017
@kirannarwade3017 2 жыл бұрын
Thank you so much sir you helped me 🙏🏻
@promaxcomputer925
@promaxcomputer925 2 жыл бұрын
Awesome, Awesome. This video is really what i need, thanks and keep doing this great work
@codeaura5138
@codeaura5138 2 жыл бұрын
Thank you
@crish2480
@crish2480 2 жыл бұрын
starting this tutorial right now. I hope that i am successful in deploying the project
@経験KeiKen
@経験KeiKen 2 жыл бұрын
Thank you, works superbly
@northerngannet5775
@northerngannet5775 3 жыл бұрын
Thanks, great video!
@codeaura5138
@codeaura5138 3 жыл бұрын
You're welcome!
@SaifulAlam15
@SaifulAlam15 3 жыл бұрын
Explained well. Thanks..
@nelisiwemasango8890
@nelisiwemasango8890 8 ай бұрын
can I buy you coffee or something?you have no idea how much you have helped me thank you so much
@codeaura5138
@codeaura5138 8 ай бұрын
You are so generous.! 🫣
@andresgg7869
@andresgg7869 2 жыл бұрын
Cool. Thx for all!
@paborlouise319
@paborlouise319 2 жыл бұрын
Good job 👍. Pls make a tuts on AWS deployment too, I love your contents.
@utkarshsharma107
@utkarshsharma107 3 жыл бұрын
Will it work on blog app which Corey Schafer has made
@codeaura5138
@codeaura5138 3 жыл бұрын
Why not Utkarsh?
@utkarshsharma107
@utkarshsharma107 3 жыл бұрын
When I clicked on postgres it showed a new tab named heroku data nothing else How to get credintials of host
@codeaura5138
@codeaura5138 3 жыл бұрын
Sometimes it takes time to get your db created at heroku
@utkarshsharma107
@utkarshsharma107 3 жыл бұрын
@@codeaura5138 It's taking a lot is there a solution for this
@utkarshsharma107
@utkarshsharma107 3 жыл бұрын
It is not working 😭 what to do
@kaitouang7378
@kaitouang7378 2 жыл бұрын
Thank you so much
@codeaura5138
@codeaura5138 2 жыл бұрын
you are welcome
@bartoszzielinski4292
@bartoszzielinski4292 2 жыл бұрын
Great video. How I can login to PostgresSQL admin panel on deployed app?
@codeaura5138
@codeaura5138 2 жыл бұрын
You can download 'pgAdmin' and then create a server in it which can then connect to your database. To create the server, you will need some credentials which can be found on heroku.
@solomonbestz
@solomonbestz 2 жыл бұрын
Requesting a video: Can you please make a video to deploy a django app that successfully sends mail. Thanks. This video was very helpful thanks alot sir.
@JustinDoesntLookAt
@JustinDoesntLookAt 2 жыл бұрын
so this is pushing the creds directly, seems kinda not secure... make sure the repository is private!
@codeaura5138
@codeaura5138 2 жыл бұрын
You are right. I kinda demonstrated how this can be done preliminarily, not securely. Of course, you will have dot-env etc...
@bourkimohamed1068
@bourkimohamed1068 3 жыл бұрын
Thanks
@codeaura5138
@codeaura5138 3 жыл бұрын
Hey, you are welcome man! Please consider subscription :D
@bourkimohamed1068
@bourkimohamed1068 3 жыл бұрын
@@codeaura5138 ok
@alexandergarzo9415
@alexandergarzo9415 2 жыл бұрын
How do you handle media files?
@cricketkibaateindaily
@cricketkibaateindaily 3 жыл бұрын
Thanks how to create superuser now?
@codeaura5138
@codeaura5138 3 жыл бұрын
You can use your local-shell to create a super user. Heroku-cli can be used too..
@avinash-xh6qw
@avinash-xh6qw 3 жыл бұрын
@@codeaura5138 how to create super user after deploying on heroku
@Conormcnproductions
@Conormcnproductions 2 жыл бұрын
Thanks. Very insightful, but you had me forgetting to make new migrations after changing the database to postgres in the settings file. Also, for the ENGINE field, I wrote "postgresql" at the end of the string instead of "postgresql_psycopg2" as it's more relative to the newer versions of Django
@dhruvpatel5661
@dhruvpatel5661 3 жыл бұрын
i am having this error please help me.... ModuleNotFoundError: No module named 'django_heroku' ! Error while running '$ python manage.py collectstatic --noinput'
@codeaura5138
@codeaura5138 3 жыл бұрын
I think, I understood your problem. I installed 'django-heroku' package. You might have missed that. Please, watch the video carefully.
@dhruvpatel5661
@dhruvpatel5661 3 жыл бұрын
@@codeaura5138 now its working thx bro
@codeaura5138
@codeaura5138 3 жыл бұрын
You are welcome. I am happy that you managed to solve it finally. Happy coding! Stay in touch.
@unnatisharma1261
@unnatisharma1261 3 жыл бұрын
I cannot see profile images after deployment is there a solution for this
@avneez1631
@avneez1631 2 жыл бұрын
Can I do it with the MySQL database?
@codeaura5138
@codeaura5138 2 жыл бұрын
Yes
@avinash-xh6qw
@avinash-xh6qw 3 жыл бұрын
Great tutorial, you haven't used whitenoise anywhere
@codeaura5138
@codeaura5138 3 жыл бұрын
Thank you Ajay, I didn't need whitenoise at all because I didn't deal with any static files in this tutorial. However, you might need whitenoise in real project.
@achyutkayastha4248
@achyutkayastha4248 2 жыл бұрын
doesn't show how to import a local postgresql database to the heroku db. But thanks for the initial config
@begaiymkudainazarova2951
@begaiymkudainazarova2951 3 жыл бұрын
Hi! Thanks for this great video. Almost everything worked. When I pushed files to github they were saved there inside a folder, not one by one like yours(ex. in my github repository first i can see DDAH/ddah folder and only when i press that i can see all the files) because of this heroku gives me an error when i try to deploy it.
@codeaura5138
@codeaura5138 3 жыл бұрын
To avoid this issue, you have to initialize your 'git' inside 'ddah' folder, not 'DDAH' folder.
@nandinichhajed4824
@nandinichhajed4824 2 жыл бұрын
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: none) can anyone help me resolve this error during deployement
@codeaura5138
@codeaura5138 2 жыл бұрын
Did you manage to solve it? I removed it from requirements.txt file
@FullStackDevGreg
@FullStackDevGreg 3 жыл бұрын
Sir you forgot to add the build pack Buildpacks under the Settings tab, you should select heroku/python
@openmindjustdoit1306
@openmindjustdoit1306 3 жыл бұрын
Hi brother can you tech me this Online meeting On zoom or google meeting Let me know
@codeaura5138
@codeaura5138 3 жыл бұрын
What is troubling you? Is there any specific problem? Let me know. I thought, this video is sufficient to deploy django app on heroko platform.
@openmindjustdoit1306
@openmindjustdoit1306 3 жыл бұрын
@@codeaura5138 Its good work with me How work with api to store in database
@rovshenashirov7747
@rovshenashirov7747 2 жыл бұрын
Is free?
@codeaura5138
@codeaura5138 2 жыл бұрын
To some degree
@devtosxn
@devtosxn 3 жыл бұрын
Great work. I don't however think it's a nice idea to have to manually put your heroku database credentials in the code that is pushed to github. Just not best practice.
@codeaura5138
@codeaura5138 3 жыл бұрын
You are 100% right. For simplicity, actually I demonstrated in that fashion.
@devtosxn
@devtosxn 3 жыл бұрын
@@codeaura5138 Yes, I understand. Also a tutorial suggestion that I'm very convinced people will find extremely valuable is setting up CI/CD for the Django project, right before they even write any code. So when they push to main branch, it's deployed live. I'm serious when I say I'm yet to find any creator who has done a great job with that kind of tutorial.
@cje8887
@cje8887 3 жыл бұрын
@@devtosxn I agree, I recently watched and read a lot of the resources available online on how to set up Django + Postgres (or also DRF and Redis), and honestly most of them are not very good, at least not for someone doing it the first time.
@ivayloivanov3744
@ivayloivanov3744 2 жыл бұрын
You can add them in the Settings > Config Vars. I guess that's the right way to do? It worked for me.
@bourkimohamed1068
@bourkimohamed1068 3 жыл бұрын
Please how to recive notification in my gmaol when someone cotact me in contact form
@fyardlest1
@fyardlest1 2 жыл бұрын
This is a good one! But for the DATABASE part, I do not think it is the best way to do it because you expose the credentials.
@codeaura5138
@codeaura5138 2 жыл бұрын
You are right. In production, these may come from .env variables. My goal was to demonstrate how to go live quickly.
@duruakuebuka9148
@duruakuebuka9148 2 жыл бұрын
Not to be gay, but I love you💀
@tgbotdeveloper
@tgbotdeveloper 2 жыл бұрын
Thanks bro! But Media Files dont work :(
@MagnusAnand
@MagnusAnand 2 жыл бұрын
Remember to configure in settings.py: Debug = False
@teghenlesley7250
@teghenlesley7250 2 жыл бұрын
SAVIOUR😔 M FEEELING EMOTIONAL AFTER TRYING AND TRYING
@santiagoortizbasualdo3682
@santiagoortizbasualdo3682 2 жыл бұрын
any clue about this error? File "/app/.heroku/python/lib/python3.10/asyncio/windows_events.py", line 6, in raise ImportError('win32 only') ImportError: win32 only
How to Deploy a Django App and Postgres Database to Render
20:14
Pretty Printed
Рет қаралды 42 М.
Heroku Webhosting for Django - Python Django Dentist Website #12
22:28
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Heroku Is Dead, Here's What I Recommend
11:59
Theo - t3․gg
Рет қаралды 270 М.
Deploying a PostgreSQL database on Heroku (Part 1)
10:48
CodeHive
Рет қаралды 56 М.
How To Deploy A Django Project To Heroku
14:02
Code With Tomi
Рет қаралды 53 М.
9 - How to Deploy Django Project To Heroku | Easiest Way! | 2024
17:25
Deploy a Django web app to a Render live server with PostgreSQL
46:57
Cloud With Django
Рет қаралды 30 М.
How to deploy Laravel web app on Heroku
20:05
Søren Spangsberg Jørgensen
Рет қаралды 23 М.
How to Set up VS Code for Data Science & AI
22:53
Dave Ebbelaar
Рет қаралды 337 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН