Man I wish I could hug you right now. I was on the verge of a fucking mental breakdown when your video just saved me. As a self learner, sometimes some problems can be really overwhelming. I was stuck at a step during deployment. I saw your video, then got some motivation that if you can successfully deploy then so can I. Went through your entire video, then through a shit ton of documentations and finally figured out the solution to my problem. Mad respect to you and the work you do. You are my inspiration. I wish you all the best in your journey.
for people who got an error like this fatal: not a git repository (or any of the parent directories): .git" in terminal go to root dir of your project and type git init
got your website for $40k in my recommended, watched it and i liked listening to your experience very inspiring i might add , seeing that you are using the technologies i want to prefect django + react as well as you being a relatively new youtuber got me to subscribe coz i think it'll be great to be here early and watch you grow. cheers! all the way from UG
Thank you Jordan I appreciate your support :) Django + React go very well together so it surprises me that I don't see more online with this combination.
ive been coding for a year and 5months and i've been subscribed to alot dev youtubers Traversy, DevEd etc but what i noticed is that most people want to stick to a fully JS stack or using python django/flask with a css framework (though traversy did actually try on this and we appreciate), yet something good can really come out incorporating both sides into one not that the former isn't capable im just sure there are more out there with a need for content using the two together , you already have points on this
@@DennisIvy Hello, am getting this error, what might be the problem -----> App not compatible with buildpack: buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz More info: devcenter.heroku.com/articles/buildpacks#detection-failure ! Push failed
You are great. I have spent almost two days to deploy my website. But could not find the right solution. Most of the youtubers make it complicated and the beginners will be confused. You make it simple and clear. Finally I deployed my website after watching this tutorial. Thank you very much.
Amazing tutorial series. What would be extremely helpful sequel to these would be a some kind of tutorial for simple DevOps tasks with django. It would be useful to learn, how do to do continuous development and integration with django as there are not that many tutorials around. Most deployment tutorials focus on only deploying "finished" projects.
MANY MANY MANY THANKS for this video I have been trying to deploy my Django apps but I was not able to do so until I watch your video. It is really easy and helpful.
To be honest, it was hard to follow this as a tutorial since it jumps around a lot... For example: First we add all files to Github THEN have to make edits and update the files on Github ... First we create requirements.text THEN we add another library (White Noise). Might help to write out what you're going to teach ahead of time, so you don't have to hop back and forth, which becomes confusing -- the content is hard enough as it is for beginners without all the jumping back and forth... Thanks for making this, still appreciative!
For those who are getting errors related to the collectstatic, I think you should consider looking at your CSS file if you have and avoid referencing images from the URL that is outside of your apps, in the base directory. This has helped me!
Hey bro, i appreciate what i have learnt from you so far. Can you make a tutorial of deployment to free hosts such as vercel. just for beginners like me
I have tried all points but my static images are not showing up in heroku app. Pic not found is showing up. Included all steps as provided in devcenter.heroku.com/articles/django-assets can anyone help me regarding this.!
@@romit5867 pip install django_heroku in your virtual environment, type import django_heroku on top of the settings.py page and add django_heroku.settings(locals()) as last line of the settings.py page. I hope this helps you, I did and it worked for me
Why did you suddenly switch from showing heroku cli set up to deploying through git 5:15? It was really confusing. It would be better if you showed the heroku cli setup after showing the first option (deploy using github).
Dennis sir you are astounding, I was trying to deploy django app from last 2months but Now I deployed it after watching this amazing tutorial. I am very glad and thankful to you for such amazing tutorial.
Media images that I uploaded from the admin is not showing up neither on local host nor on heroku...also the admin page is not showing up...and the heroku site says some error..although heroku compiled it successfully
Hey @Sagar Kc ! I had the same problem with the images and maybe i can help you if i can see your code. I had to change the MEDIA_ROOT to the STATICFILES_DIRS folder. I had my images in a Page model so i made some changes to the views.py and tags in the templates. Views.py- def mydef(request): model = Page.objects.get(page="Home") context = {'page' : model} return render(request, 'home.html', context) Templates- {% load static %} Let me know if you have more doubts!
Hi Dennis Ivy. I really found this crashcourse very insightful and informative to get started with the Django Framework. It's really awesome and i have recommended it to most of my friends over here. I also have a major issue i have been trying to rectify in Django for a while, where images and media files do not show when debug is set to False i.e during Production. I'd be very happy if this issue can be rectified by you. Thanks once again for this amazing content.
You tutorial give me a very clear instruction in django, Thank you very much. I think if you can talk more about Error handling will be better, like ( Bad Request 400 ) I faced before. Anyway, I launch my website at the end, thank you.
i am finding below error when I click on deploy branch. can any one help me , ERROR: mysqlclient-1.4.6-cp38-cp38-win32.whl is not a supported wheel on this platform. ! Push rejected, failed to compile Python app. ! Push failed
hi, i got a problem for my django project tho. I used the same method to git push my files to heroku and followed every single step but problem is how come it just shows gunicorn.errors.HaltServer: , i checked everything is fine and i do pip install everything needed but when i checked with gunicorn --preload it just says that fntcl module not found... I'm using windows also then how come my project got problem tho :(
Its better practice to set one up. You dont need to restart, just create one and run a pip freeze so you have everything up to date in requirements.txt :)
I have a problem with my Django project after deploying it to Heroku. When I go to the project url on Heroku, I am hit with a "ModuleNotFoundError at / No module named 'accounts.urls'.please help me sir
i got this error anyone please knows how to fix it ? : » Warning: heroku update available from 7.53.0 to 7.59.1. Error: Command failed: git remote fatal: not a git repository (or any of the parent directories): .git
So what basically you re doing in this video is - in first case you are trying to deploy from github repo, and in second case you are directly pushing git repo to heroku.
Dennis bro, my images are showing on local server but when I am deploying it on heroku images are not showing up and other functionality is working properly.Please help
I was following your tutorial but after making changes done till 12 min in the video, I tried to run the code on local server but it is showing me error 404 , please help me to solve this error.
My async await function works locally on VS Code but not when deployed to heroku. That particular function dose not work. Dose anyone know how i can fix this?
I tried this command in command promt: heroku git:remote -a its-my-world I am getting an error like fatal: not a git repository (or any of the parent directories): .git can any one help me out
Till 18:10 I was able to follow. At this stage when I try to Deploy Branch I am getting "ERROR: Could not install packages due to an EnvironmentError: [ Error 2 ] No such file or directory: '/tmp/build/80754af9/asgiref_1617654513486/work' . I am not able to resolve this error . Kindly help me
I liked the to-do list app and the store app from a different series than this, was going to go through this series but what a pain in the butt trying to get it deployed to a server. Isn't there some kind of way to get a production build like in react and you can just upload it to the server with no problems?
Hi Dennis, yesterday I realize that django admin is not uploading images in github (with heroku) anymore, please confirm that this Tutorial is still functional. Thank you.
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
Man I wish I could hug you right now. I was on the verge of a fucking mental breakdown when your video just saved me. As a self learner, sometimes some problems can be really overwhelming. I was stuck at a step during deployment. I saw your video, then got some motivation that if you can successfully deploy then so can I. Went through your entire video, then through a shit ton of documentations and finally figured out the solution to my problem.
Mad respect to you and the work you do. You are my inspiration. I wish you all the best in your journey.
for people who got an error like this
fatal: not a git repository (or any of the parent directories): .git"
in terminal go to root dir of your project and type git init
thank you so much
Thank you brother
it works (y)
sorry but it is still showing me the same error. how can i fix it
type git init this will create a reposotery then type the command it will work
got your website for $40k in my recommended, watched it and i liked listening to your experience very inspiring i might add , seeing that you are using the technologies i want to prefect django + react as well as you being a relatively new youtuber got me to subscribe coz i think it'll be great to be here early and watch you grow. cheers! all the way from UG
Thank you Jordan I appreciate your support :) Django + React go very well together so it surprises me that I don't see more online with this combination.
ive been coding for a year and 5months and i've been subscribed to alot dev youtubers Traversy, DevEd etc but what i noticed is that most people want to stick to a fully JS stack or using python django/flask with a css framework (though traversy did actually try on this and we appreciate), yet something good can really come out incorporating both sides into one not that the former isn't capable im just sure there are more out there with a need for content using the two together , you already have points on this
@@DennisIvy Hello, am getting this error, what might be the problem -----> App not compatible with buildpack: buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
More info: devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
Спасибо за достойный контент. Смотрю, только, из-за твоего английского, он на охрененном уровне. Респект.
Thanks, Dennis, your tutoring skills are top-notch, this tutorial helped me a lot..Kudos!
You are great. I have spent almost two days to deploy my website. But could not find the right solution. Most of the youtubers make it complicated and the beginners will be confused. You make it simple and clear. Finally I deployed my website after watching this tutorial. Thank you very much.
Thank You very much! I've been trying to deploy my Django app for days and was ready to give up until your video showed up. Great Tutorial!
Thank you Dennis. You are amazing. This crash course makes my django developing life more easy what i didn't get last three year.
Thank you so much Sir Dennis, hope we achieve our goals
Amazing tutorial series. What would be extremely helpful sequel to these would be a some kind of tutorial for simple DevOps tasks with django. It would be useful to learn, how do to do continuous development and integration with django as there are not that many tutorials around. Most deployment tutorials focus on only deploying "finished" projects.
Really appreciate . We are expecting advanced tutorials in django
We'll advanced soon after the basics :)
17:19 Why cant I drag and drop folders to github like that ? It only happens with files
DENNIS I'M ALMOST CRYING DUDE THANKS FOR THE HELP YOU ARE THE BEST!!!!!!!!!
😌
MANY MANY MANY THANKS for this video
I have been trying to deploy my Django apps but I was not able to do so until I watch your video.
It is really easy and helpful.
Your tutorial is by far the best ever with much explanation...Thank you so much
To be honest, it was hard to follow this as a tutorial since it jumps around a lot... For example: First we add all files to Github THEN have to make edits and update the files on Github ... First we create requirements.text THEN we add another library (White Noise). Might help to write out what you're going to teach ahead of time, so you don't have to hop back and forth, which becomes confusing -- the content is hard enough as it is for beginners without all the jumping back and forth... Thanks for making this, still appreciative!
12:43 - I never knew we can drag drop files onto github.
yep way easier and faster
its annoying sometimes because if your project files have any empty file it just stops uploading
For those who are getting errors related to the collectstatic, I think you should consider looking at your CSS file if you have and avoid referencing images from the URL that is outside of your apps, in the base directory.
This has helped me!
pls can you explain a lil bit more
@@tofunmiadeyinka6201 look at your files directory
Appreciate your work, good luck to you, Dennis!
thank you Dennis. I could finally deploy my django app to heroku
Hey man I just wanna say a huge thanks! I definitely will take one of your paid courses! great teaching!
i am using default database and staticfiles are not getting served
The static root error keeps showing.. i've changed the settings.py , and nothing..
Great video. Has helped me while deploying my own site. Thanks for your time!
Hey bro, i appreciate what i have learnt from you so far. Can you make a tutorial of deployment to free hosts such as vercel. just for beginners like me
One of the Best explanations!
Easy way to deploy django projects, thanks a lotttt
I have tried all points but my static images are not showing up in heroku app. Pic not found is showing up. Included all steps as provided in devcenter.heroku.com/articles/django-assets can anyone help me regarding this.!
Thanks for this video sir, it helped me a lot to get done my work for deployment on heroku.
Is there someone else who still has collect static error, even after adding whitenoise and static_root? If yes, then did you fix it and how? Thanks.
i am having same issue. did you found any solution???
@@romit5867 pip install django_heroku in your virtual environment, type import django_heroku on top of the settings.py page and add django_heroku.settings(locals()) as last line of the settings.py page.
I hope this helps you, I did and it worked for me
Samuel kwasi akoto i have already fixed this actually i forgot to run requirement txt in venv. Anyway thanks for the reply
@@samuelkwasiakoto3332 thank you!
@@avantikasinghparihar2018 hey i got the same error after fix.
To run the command on virtual environment is necessary?
Images couldn't uploded , how to solve it
Thank you Dennis. You are amazing. :)
Signup with mail verification locally work it properly. But when Deploy it on heroku server it's occurs error.
How can solve it brother?
Why did you suddenly switch from showing heroku cli set up to deploying through git 5:15? It was really confusing. It would be better if you showed the heroku cli setup after showing the first option (deploy using github).
Thanks for your videos, Really helped me
thank you man:
Thanks man you are a life saver!
Денис, спасибо и лайк!
thank you so much for this tutorial , you are the best :)
Thanks guys!
Remember enable dynos in resources tab on heroku before running app.
How to do that. Can you please explain!
This was very helpful. Thanks
Dennis sir you are astounding, I was trying to deploy django app from last 2months but Now I deployed it after watching this amazing tutorial.
I am very glad and thankful to you for such amazing tutorial.
Can you do a tutorial of heroku handling media storages like pictures in an app during deployment
Thank You Dennis
Thanks Dennis!
Hi Denis,
Do we have to create virtual environment for every Django Project
hello dennis, I followed all the steps but i got server error(500)
Media images that I uploaded from the admin is not showing up neither on local host nor on heroku...also the admin page is not showing up...and the heroku site says some error..although heroku compiled it successfully
Hey @Sagar Kc ! I had the same problem with the images and maybe i can help you if i can see your code.
I had to change the MEDIA_ROOT to the STATICFILES_DIRS folder.
I had my images in a Page model so i made some changes to the views.py and tags in the templates.
Views.py-
def mydef(request):
model = Page.objects.get(page="Home")
context = {'page' : model}
return render(request, 'home.html', context)
Templates-
{% load static %}
Let me know if you have more doubts!
@@swag7297 thank u very much sir🙏
@@sagarkc3662 You're welcome!!
It worked. Thanks a lot.
Server Error (500)
I got the same error, when i set Debug = False, when i set it to True it does't give me any error.
Make sure you did your migration
Very Helpfull
how come when i drag and drop sub folders are left out
Because the __init__.py files are empty. Write some comments in them and it should fix the problem
Hi Dennis Ivy. I really found this crashcourse very insightful and informative to get started with the Django Framework. It's really awesome and i have recommended it to most of my friends over here.
I also have a major issue i have been trying to rectify in Django for a while, where images and media files do not show when debug is set to False i.e during Production. I'd be very happy if this issue can be rectified by you. Thanks once again for this amazing content.
why you dont host it on aws as you store database and static files on aws it would be more together sum
method 2 --> 20:44
Excellent course
01/08/2020
kindly show how do we hide our keys in Heroku or how to we access environment variables from Heroku inside Django settings
Thank you so much.
You tutorial give me a very clear instruction in django, Thank you very much. I think if you can talk more about Error handling will be better, like ( Bad Request 400 ) I faced before. Anyway, I launch my website at the end, thank you.
how did you deal with the Bad Request 400 error
If "git heroku push master" is causing errors, add a file to the static folder called ".keep". Then follow steps at 23:30
i am finding below error when I click on deploy branch. can any one help me ,
ERROR: mysqlclient-1.4.6-cp38-cp38-win32.whl is not a supported wheel on this platform.
! Push rejected, failed to compile Python app.
! Push failed
hi, i got a problem for my django project tho. I used the same method to git push my files to heroku and followed every single step but problem is how come it just shows gunicorn.errors.HaltServer: , i checked everything is fine and i do pip install everything needed but when i checked with gunicorn --preload it just says that fntcl module not found... I'm using windows also then how come my project got problem tho :(
Use waitress
How do you launch the django website through docker ?
Thanks! I Can't login to my admin account after deploying on heroku, any idea how to fix that. I'm using sqlite3, as well.
cant see my git repo in heroku, how can i see it to select it
thanks
the server cannot find my static images, can someone help me?
Goddamn heroku giving me disable collectstatic =1 tenth time, watched your video twice. Nothing seems to work
Same here
what is wrong with using post gree in production?
anyone else having this error WARNING: "sdl-config" failed!
I'm getting error like :
Operationalerror
No such table
Even I got this error in another project. I had to do run syncdb
Search on web for this
is it necessary to build the project through virtual environment?, I mean if i had the project already, should I start over?. Best regards
Its better practice to set one up. You dont need to restart, just create one and run a pip freeze so you have everything up to date in requirements.txt :)
I have a problem with my Django project after deploying it to Heroku. When I go to the project url on Heroku, I am hit with a "ModuleNotFoundError at / No module named 'accounts.urls'.please help me sir
Hi, I didn't have trouble with the static files, but heroku says I don't have processes but I set my Procfile as you did, what can be wrong?
when I click update order button ,its blank.I think we have return formset in update order too.
thanks
i got this error anyone please knows how to fix it ? :
» Warning: heroku update available from 7.53.0 to 7.59.1.
Error: Command failed: git remote
fatal: not a git repository (or any of the parent directories): .git
thankyu sir
images in profile are not showing
As for October 2020, this method worked.
(Tested with RealPython's "Get Started With Django Part 1: Build a Portfolio App".)
Really where can I get the solution
@@agboighalewisdom1230 Which solution ?
My static file is not rendered in the app
@@agboighalewisdom1230 Even in the localhost (127.0.0.1)
@@skanda2186 yea.. I had to create a style tag in my main.HTML
So what basically you re doing in this video is - in first case you are trying to deploy from github repo, and in second case you are directly pushing git repo to heroku.
Dennis bro, my images are showing on local server but when I am deploying it on heroku images are not showing up and other functionality is working properly.Please help
I was following your tutorial but after making changes done till 12 min in the video, I tried to run the code on local server but it is showing me error 404 , please help me to solve this error.
Hi Dennis,
When deploying to Heroku the ImageField from the models.py doesn't display image (the profile pic), How can we fix it?
Have you find the fix?
Thank you!
My async await function works locally on VS Code but not when deployed to heroku. That particular function dose not work. Dose anyone know how i can fix this?
I tried this command in command promt: heroku git:remote -a its-my-world I am getting an error like fatal: not a git repository (or any of the parent directories): .git can any one help me out
Go to your root folder of django project in cmd and type "git init" after that it will work fine.
@@RohitSharma-bc3ce thank you.
great video
Till 18:10 I was able to follow. At this stage when I try to Deploy Branch I am getting "ERROR: Could not install packages due to an EnvironmentError: [ Error 2 ] No such file or directory: '/tmp/build/80754af9/asgiref_1617654513486/work' . I am not able to resolve this error . Kindly help me
hey thanks for your video , can you please tell me how to check what exactly error is
I am having css,js and images files under static folder.Failing to render them all.Please help.
Hello I followed the guide to fix the collectstatic problem and it is not working. I am doing this on a different project. Anyone know how to fix it?
Pls the continuation for this? U mention at the end of the tutorial..how to ignore our SQL database.
Thank you! u d best
Hey, Can anyone help me out? I deployed my app sucessfully but getting an "Application error" after viewing the app at the url.
I liked the to-do list app and the store app from a different series than this, was going to go through this series but what a pain in the butt trying to get it deployed to a server. Isn't there some kind of way to get a production build like in react and you can just upload it to the server with no problems?
When i deploy on heroku the following error occurs. What to do?Plz help
Building wheel for pyodbc (setup.py): finished with status 'error'
i think ive try this a thousand times but the same error keeps on popping
Hi Dennis, yesterday I realize that django admin is not uploading images in github (with heroku) anymore, please confirm that this Tutorial is still functional. Thank you.
I'm also finding the solution,
There's a solution for static files
But I haven't found any for the media files
@@AnandSharma-lt8wq could you send it if you see it??
I have a module which can only be installed by anaconda. How can I add it to requirements.txt file?