Don't forget to check out my Complete Django course! dub.sh/NvGboTI
@AmanSharma-kq4rb4 жыл бұрын
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.
@-DixonAndrewVandeStarSimbolon4 жыл бұрын
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
@firminnganduli23234 жыл бұрын
thank you so much
@rohitmehta55734 жыл бұрын
Thank you brother
@BrandonDelPozo4 жыл бұрын
it works (y)
@sandeepsinghnegi63484 жыл бұрын
sorry but it is still showing me the same error. how can i fix it
@sriram97864 жыл бұрын
type git init this will create a reposotery then type the command it will work
@titan87883 жыл бұрын
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!
@deepaks30704 жыл бұрын
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.
@madspank18164 жыл бұрын
Спасибо за достойный контент. Смотрю, только, из-за твоего английского, он на охрененном уровне. Респект.
@georgekamakia7591 Жыл бұрын
Thanks, Dennis, your tutoring skills are top-notch, this tutorial helped me a lot..Kudos!
@jordanrob42404 жыл бұрын
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
@DennisIvy4 жыл бұрын
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.
@jordanrob42404 жыл бұрын
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
@snex-techprogrammer51104 жыл бұрын
@@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
@nisharulislam35564 жыл бұрын
Thank you Dennis. You are amazing. This crash course makes my django developing life more easy what i didn't get last three year.
@Jose-ol5xk2 жыл бұрын
DENNIS I'M ALMOST CRYING DUDE THANKS FOR THE HELP YOU ARE THE BEST!!!!!!!!!
@DennisIvy2 жыл бұрын
😌
@sarafarron78443 жыл бұрын
0:20 heroku account 0:42 1st method (connect git rep to heroku) 2:20 heroku cli 5:10 requirements in django project 11:50 connect github to heroku 19:45 2nd method
@abdullashafi5803 жыл бұрын
dude did you complete this .......I'm ruined with too much errors.......can you help me ?
@2024comingforyou3 жыл бұрын
17:19 Why cant I drag and drop folders to github like that ? It only happens with files
@Larszon893 жыл бұрын
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.
@pavankalyanadusumalli88274 жыл бұрын
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.
@m_jasurbek163 жыл бұрын
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!
@tofunmiadeyinka62013 жыл бұрын
pls can you explain a lil bit more
@m_jasurbek163 жыл бұрын
@@tofunmiadeyinka6201 look at your files directory
@ikthedark.chowdhury72493 жыл бұрын
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).
@anselsolomon62703 жыл бұрын
Your tutorial is by far the best ever with much explanation...Thank you so much
@abhijeettiwari69654 жыл бұрын
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.
@russelrodriguez50934 жыл бұрын
Thank you so much Sir Dennis, hope we achieve our goals
@fonatic58932 жыл бұрын
Appreciate your work, good luck to you, Dennis!
@randyballesterosm Жыл бұрын
Hey man I just wanna say a huge thanks! I definitely will take one of your paid courses! great teaching!
@whit3rose4 жыл бұрын
12:43 - I never knew we can drag drop files onto github.
@mychromebook99353 жыл бұрын
yep way easier and faster
@vivekshukla94853 жыл бұрын
its annoying sometimes because if your project files have any empty file it just stops uploading
@DanSevigny2 жыл бұрын
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!
@zakirzeynalov80724 жыл бұрын
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.
@romit58674 жыл бұрын
i am having same issue. did you found any solution???
@samuelkwasiakoto33324 жыл бұрын
@@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
@romit58674 жыл бұрын
Samuel kwasi akoto i have already fixed this actually i forgot to run requirement txt in venv. Anyway thanks for the reply
@avantikasinghparihar20184 жыл бұрын
@@samuelkwasiakoto3332 thank you!
@amankumar-qs5fy3 жыл бұрын
@@avantikasinghparihar2018 hey i got the same error after fix. To run the command on virtual environment is necessary?
@loksewabyte4 жыл бұрын
Really appreciate . We are expecting advanced tutorials in django
@DennisIvy4 жыл бұрын
We'll advanced soon after the basics :)
@DarkStarRules3 жыл бұрын
If "git heroku push master" is causing errors, add a file to the static folder called ".keep". Then follow steps at 23:30
@theadrix923 жыл бұрын
thank you Dennis. I could finally deploy my django app to heroku
@apurbadebnath43423 жыл бұрын
Images couldn't uploded , how to solve it
@m_jasurbek163 жыл бұрын
Great video. Has helped me while deploying my own site. Thanks for your time!
@carsworld34333 жыл бұрын
i am using default database and staticfiles are not getting served
@vikramk68693 жыл бұрын
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
@perplexedbot3 жыл бұрын
kindly show how do we hide our keys in Heroku or how to we access environment variables from Heroku inside Django settings
@joeretzyee91812 жыл бұрын
hello dennis, I followed all the steps but i got server error(500)
@charanjeetsingh85904 жыл бұрын
Hi Denis, Do we have to create virtual environment for every Django Project
@mathelinux-b8h2 жыл бұрын
Can you do a tutorial of heroku handling media storages like pictures in an app during deployment
@sagarkc36624 жыл бұрын
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
@swag72974 жыл бұрын
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!
@sagarkc36624 жыл бұрын
@@swag7297 thank u very much sir🙏
@swag72974 жыл бұрын
@@sagarkc3662 You're welcome!!
@yashm054 жыл бұрын
method 2 --> 20:44
@vinaykakanuru4 жыл бұрын
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.!
@clubfootbear.stories4 жыл бұрын
One of the Best explanations!
@abdulkaderzilani18254 жыл бұрын
Signup with mail verification locally work it properly. But when Deploy it on heroku server it's occurs error. How can solve it brother?
@dileep_achar4 жыл бұрын
Easy way to deploy django projects, thanks a lotttt
@MrYoklmn4 жыл бұрын
Денис, спасибо и лайк!
@JobFormAutomator2 жыл бұрын
Thank you Dennis. You are amazing. :)
@chandans50672 жыл бұрын
I am having css,js and images files under static folder.Failing to render them all.Please help.
@yevs993 жыл бұрын
Thanks for this video sir, it helped me a lot to get done my work for deployment on heroku.
@newtontavengwa2913 жыл бұрын
how come when i drag and drop sub folders are left out
@abdullahaziz33673 жыл бұрын
Because the __init__.py files are empty. Write some comments in them and it should fix the problem
@nguyenvantrung33204 жыл бұрын
Thanks guys! Remember enable dynos in resources tab on heroku before running app.
@kavinbharathi4 жыл бұрын
How to do that. Can you please explain!
@aaronjoseph78797 ай бұрын
How do you launch the django website through docker ?
@yapjy96574 жыл бұрын
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 :(
@kunalsinghal40604 жыл бұрын
Use waitress
@zs-studio13 жыл бұрын
Thanks for your videos, Really helped me
@ayushvanvary Жыл бұрын
why you dont host it on aws as you store database and static files on aws it would be more together sum
@pabbasumant53822 жыл бұрын
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
@abhishekshukla72344 жыл бұрын
hey thanks for your video , can you please tell me how to check what exactly error is
@dipinr9633 жыл бұрын
when I click update order button ,its blank.I think we have return formset in update order too.
@cristiangomes61013 жыл бұрын
what is wrong with using post gree in production?
@BrianArtea4 жыл бұрын
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?
@empowerexcel41162 жыл бұрын
cant see my git repo in heroku, how can i see it to select it thanks
@abdelmoumenamine8913 жыл бұрын
why i can't get connected to my github account from heroku plateforme
@harryjohn67363 жыл бұрын
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
@bartoszzielinski42922 жыл бұрын
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.
@salmixH2o4 жыл бұрын
When I drag and drop all my files project in the github repository (just like Dennis did) some of them don't get picked up, so I have to re-drag and drop the missing ones...has anyone ever had the same problem?
@salmixH2o4 жыл бұрын
@Free Speech yeah, I've noticed myself Github doesn't pick empty files, but sometimes it doesn't pick whole sub-folders because of that either...
@syedawaisahmed89174 жыл бұрын
I have the same problem how can I solve it??
@syedawaisahmed89174 жыл бұрын
@salmixH2o have you solved your issue??
@salmixH2o4 жыл бұрын
@@syedawaisahmed8917 actually no... so I just opted for the deploying method via command line. That one works always fine
@dennischan80324 жыл бұрын
I just went into all the 0kb files and added comment #, saved them so they became 1kb. Then all went through ok after that
@Kinace8 ай бұрын
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
@edivaldoluisbonfim31942 жыл бұрын
the server cannot find my static images, can someone help me?
@clearthinking54413 жыл бұрын
Thanks man you are a life saver!
@matthewjaworski41153 жыл бұрын
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?
@shokhrukhrakhimov48603 жыл бұрын
i have done this steps but any way i am getting an application error page
@rhugwedashedge30933 жыл бұрын
Hey, Can anyone help me out? I deployed my app sucessfully but getting an "Application error" after viewing the app at the url.
@yassineballouti74842 жыл бұрын
thank you so much for this tutorial , you are the best :)
@chunshenghu42074 жыл бұрын
I have a module which can only be installed by anaconda. How can I add it to requirements.txt file?
@prime94244 жыл бұрын
When i deploy on heroku the following error occurs. What to do?Plz help Building wheel for pyodbc (setup.py): finished with status 'error'
@nirajbiswakarma57323 жыл бұрын
Sir, Why is it saying 'mysite.wsgi' not found in error log
@ammarrrrrrrr4 жыл бұрын
is it necessary to build the project through virtual environment?, I mean if i had the project already, should I start over?. Best regards
@DennisIvy4 жыл бұрын
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 :)
@avirajarora14762 жыл бұрын
Thanks Dennis!
@perezaccount94934 жыл бұрын
Can you actually deploy a django app on heroku without a server host for it's database?. For example app will only use its built in sqlite3 db while it was deployed on heroku
@carsworld34333 жыл бұрын
hey are you using postgres ??
@akashagrawal93743 жыл бұрын
images in profile are not showing
@programit71553 жыл бұрын
Thanks you for everything... For how many months my app will be online for free? and how many more apps can i deploy with the same account?
@emmanuelniyi38703 жыл бұрын
This was very helpful. Thanks
@pratikghimire3 жыл бұрын
Thank You Dennis
@khalidsiddiqui16794 жыл бұрын
Hi Dennis, When deploying to Heroku the ImageField from the models.py doesn't display image (the profile pic), How can we fix it?
@amankumar-qs5fy3 жыл бұрын
Have you find the fix?
@murtazaahmad95594 жыл бұрын
how did you setup virtual environement in django app?
@balogunolajide72044 жыл бұрын
Pls the continuation for this? U mention at the end of the tutorial..how to ignore our SQL database.
@praneethkumarchiluka76534 жыл бұрын
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
@RohitSharma-bc3ce4 жыл бұрын
Go to your root folder of django project in cmd and type "git init" after that it will work fine.
@sabasiddika4 жыл бұрын
@@RohitSharma-bc3ce thank you.
@poojakhatri44264 жыл бұрын
In my project, I have two apps and both apps have templates folder. Under templates it has a folder which has same name as app name and in that folder, i have kept all templates. White deploying my app, at last it says TemplateDoesNotExist at / can someone please help?
@mohamedmamdouh29664 жыл бұрын
i have the same problem, what did you do?
@poojakhatri44264 жыл бұрын
@@mohamedmamdouh2966 My folder name was wrong. It's supposed to be Templates and I did templates.
@mohamedmamdouh29664 жыл бұрын
@@poojakhatri4426 Thanks
@alihusham15604 жыл бұрын
at 20:24 I got ``` Error: Multiple apps in git remotes ```
@NanoNand04 жыл бұрын
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.
@AnandSharma-lt8wq3 жыл бұрын
I'm also finding the solution, There's a solution for static files But I haven't found any for the media files
@edivaldoluisbonfim31942 жыл бұрын
@@AnandSharma-lt8wq could you send it if you see it??
@animeshsingh15954 жыл бұрын
I'm getting error like : Operationalerror No such table
@TusharAmdoskar4 жыл бұрын
Even I got this error in another project. I had to do run syncdb Search on web for this
@DheerajKumar-yp2tu4 жыл бұрын
hello sir i am getting appliction after sucessfully depolying my project on heroku please tell me what to do next thank you
@jadynchowdhury6804 жыл бұрын
is a virtual environment necessary?
@babug60704 жыл бұрын
Hi sir, I'm getting runtime error. Please Can you help me to how to fix it. I'm installed python 3.8.1 version.
@jaydeepkarale73684 жыл бұрын
Consider using python-3.7.7 as , 3.8 currently not supported
@thefuturistictech-codingma81234 жыл бұрын
hello dennis! how can i set up an aws account with a verve card
@Mircoludist4 жыл бұрын
anyone else having this error WARNING: "sdl-config" failed!
@ismail.dalhatu4 жыл бұрын
i think ive try this a thousand times but the same error keeps on popping
@zargerion73993 жыл бұрын
Почему может появляться Internal Server Error?
@mallikarjunareddy4513 Жыл бұрын
How to deploy Asgi server ?
@GabrielRibeiro-xr3bx4 жыл бұрын
When I try Uploading to github repository it gives me a message and stops uploading. In my project the __init__.py is empty, so github stops the upload of the files. Is this happening to anyone else?
@divyar84024 жыл бұрын
upload it using the git bash, theres a github bug while dragging dropping folders with many files.
@abdullahaziz33673 жыл бұрын
Add a comment to the __init__.py files. This will make them no empty.
@tarun80143 жыл бұрын
thank you man:
@deepjyotide1814 жыл бұрын
"Error: Command failed: git remote fatal: not a git repository (or any of the parent directories): .git" I am having this error.
@jeanpierrescriven534 жыл бұрын
I ran cmd as administrator. Then went to the git bin directory where git was installed, ran "git init" then ran the command and worked for me. Change the var PATH under environmental settings to the git bin path usually in "C:\Program Files\Git\bin" then you don't have to cd into the directory everytime
@MASBHANOMAN4 жыл бұрын
@@jeanpierrescriven53 thanks a ton. ;D
@sunilghimire69904 жыл бұрын
same error....
@sunilghimire69904 жыл бұрын
@@jeanpierrescriven53 this not working for me
@khoiphamnguyen71184 жыл бұрын
@@jeanpierrescriven53 thank you so much
@DarraghDuffy4 жыл бұрын
In terms of protecting your code - do you know if this free/hobby Heroku account is secure/private and if there is anything else we should be aware of here to ensure our code/IP is protected. Many Thanks!
@PythonCareerCoach4 жыл бұрын
after adding STATIC_ROOT and whitenoise middleware , still received the collectstatic error.[Even I tried adding import django_heroku at top and django_heroku.settings(locals()) ]. But unable to solve the issue. Please advise
@-DixonAndrewVandeStarSimbolon4 жыл бұрын
run python manage.py collecstatic
@egwuemijerryjude72873 жыл бұрын
@@-DixonAndrewVandeStarSimbolon thanks man, it work for me