No video

How to Deploy Django Project on Heroku for Free | Step by Step Tutorial by Code Band

  Рет қаралды 44,346

Code Band

Code Band

Күн бұрын

Пікірлер: 358
@TriggerBeat
@TriggerBeat 2 жыл бұрын
You're a life saver. Just learned django over the weekend and was disappointed with the struggle I was having trying to deploy my new app to an actual server. You made sure to cover everything and helped a newbie like me. Thanks!
@CodeBand
@CodeBand 2 жыл бұрын
Very glad to hear that... keep rocking!
@yanafrolova8140
@yanafrolova8140 Жыл бұрын
You saved me! I finally deployed my site on heroku! I've tried make this with another KZfaq video, apmost lost hope! Thank you for accessible and step-by-step tutorial!!
@CodeBand
@CodeBand Жыл бұрын
Glad to hear that :)
@peterdavids31
@peterdavids31 3 жыл бұрын
YES, IT WORKED! God it's so complicated, I wish we can just drag the Django folder and upload it to Heroku, really wish we didn't need Git or all that configuration XD.
@CodeBand
@CodeBand 3 жыл бұрын
Glad I could help and git is great btw when compared to ftp when we actually starts to update the project files...
@peterdavids31
@peterdavids31 3 жыл бұрын
@@CodeBand Got it.
@CodeBand
@CodeBand 3 жыл бұрын
@@peterdavids31 Keep going👍🏻
@adamthesoftwareengineer
@adamthesoftwareengineer 3 жыл бұрын
You dropped this 👑, keep it up bro
@CodeBand
@CodeBand 3 жыл бұрын
Thanks 💯
@sue3245
@sue3245 2 жыл бұрын
The best tutorial this is after hours of trying different solutions
@CodeBand
@CodeBand 2 жыл бұрын
Very glad to hear that...
@siddharthsingh2369
@siddharthsingh2369 3 жыл бұрын
Amazing work by you you have solved my biggest problem for which i was not able to find the solution from last 3 months thnx again !!!!!!
@CodeBand
@CodeBand 3 жыл бұрын
Glad to hear that😊
@satyamdubey6226
@satyamdubey6226 3 жыл бұрын
best tutorial for deploying on heroku easy and straight forward ...thanks bro
@CodeBand
@CodeBand 3 жыл бұрын
Thanks a lot brother...keep going👍🏻
@manikantakallakuri3194
@manikantakallakuri3194 4 жыл бұрын
superb bro.. finally its working.. a lots of love from my side..
@CodeBand
@CodeBand 4 жыл бұрын
Thanks a lot brother..very glad to hear that❤️
@bigrevkev55
@bigrevkev55 3 жыл бұрын
Thank you so much! Been struggling for over 24 hours on how to fix the Program Error. I hadn't been using the Heroku CLI when migrating.
@CodeBand
@CodeBand 3 жыл бұрын
Glad I could help😊
@ulvidamirli2758
@ulvidamirli2758 3 жыл бұрын
Perfect tutorial! Thanks for the written guide! It helped me a lot!!!
@CodeBand
@CodeBand 3 жыл бұрын
Glad it helped! Keep going😊
@plusk343
@plusk343 4 жыл бұрын
Oooh, pycharm PROFESSIONAL!!!
@CodeBand
@CodeBand 4 жыл бұрын
😊 Get it free with Github Students Pack.
@ahmeddahmani9100
@ahmeddahmani9100 3 жыл бұрын
simple but enough ! May Allah bless you😊
@CodeBand
@CodeBand 3 жыл бұрын
Thanks a lot😊
@sankalpmukim1052
@sankalpmukim1052 3 жыл бұрын
Thanks a lot! man! this video really helped me publish my first app
@CodeBand
@CodeBand 3 жыл бұрын
Very glad to hear that...Thanks a lot for the support😊
@msa355
@msa355 3 жыл бұрын
Great tutorial, at last I could do after a long time and hard effort, tutorial after tutorials, thanks.....
@CodeBand
@CodeBand 3 жыл бұрын
Glad to hear that...keep going😊
@mayanktripathi4u
@mayanktripathi4u 3 жыл бұрын
Hi, This video is really help, just wondering if the steps will remain similar when deploying the Django Project on AWS or they will differ a lot? Please share some information on this.
@CodeBand
@CodeBand 3 жыл бұрын
Glad it helped😊 As far as deploying to aws, the basic steps remains the same like requirements.txt file and all, but other things vary.
@adarsaswain3623
@adarsaswain3623 3 жыл бұрын
One of the best video for heroku
@CodeBand
@CodeBand 3 жыл бұрын
Very glad to hear that😊
@thewillpowermyanmar
@thewillpowermyanmar 3 жыл бұрын
i got "heroku" isn't recognized in the terminal even after reopen my editor and my cmd. help me bro
@CodeBand
@CodeBand 3 жыл бұрын
It should work bro...path is automatically set while installing the cli....please redo the process...and make sure you reopen the editor/cmd after installing...😊
@ak-up8fg
@ak-up8fg 2 жыл бұрын
You deserve sub with bell and i did it keep it up.
@CodeBand
@CodeBand 2 жыл бұрын
Thanks a lot😊
@Taziamoma
@Taziamoma 3 жыл бұрын
Hi there, when I get to this step "git push heroku master", I get this error message "[remote rejected] master -> master (pre-receive hook declined), any idea how to fix it? "
@CodeBand
@CodeBand 3 жыл бұрын
Please post the full traceback in the console...so that I could find the error😊
@Lorem04
@Lorem04 5 ай бұрын
your a life saver.. Thanks!
@rajsrikantha7914
@rajsrikantha7914 3 жыл бұрын
. Its really good video and worked well. Thanks for offering help. Take Care & God Bless You
@CodeBand
@CodeBand 3 жыл бұрын
Glad it helped..😊
@manbirjudge8415
@manbirjudge8415 3 жыл бұрын
Thank you very very much! 🙏🙏🙏! U do not know how I struggled to find a good tutorial to host a Django website on Heroku. I followed different documentations from Heroku, Mozilla, and many blogs, 😭😭 u are the best! Thanks for helping a kid ( < 18 ). Well, should I give the link of website in this comment, it is a Notes Sharing Site.
@CodeBand
@CodeBand 3 жыл бұрын
That's great... Keep up the good work... and Of course, you can share the link...
@manbirjudge8415
@manbirjudge8415 3 жыл бұрын
@@CodeBand Thanks! And link is: notes-sharing-site.herokuapp.com/ Go to login, click on create account, u will redirected to profile page, from there u can view notes and upload notes. There is a also an admin ( superuser ) to make sure that notes are good, admin can change status of notes from pending ( when uploaded ) to rejected or accepted.
@CodeBand
@CodeBand 3 жыл бұрын
@@manbirjudge8415 Keep up the good work😊
@shourovdip3706
@shourovdip3706 4 жыл бұрын
thanks man! it finally worked!!! :D
@CodeBand
@CodeBand 4 жыл бұрын
Glad to hear that❤️
@mdakramkhan166
@mdakramkhan166 4 жыл бұрын
After my website got deployed, it is unable to access 'static' files....... The website is showing only html as frontend on the website. How can i overcome from this issue ? Please help
@CodeBand
@CodeBand 4 жыл бұрын
This might happen when you have not set up static configurations such as STATIC_ROOT, STATICFILES_DIRS, STATIC_URL in your settings.py Also in the terminal, try to run the following command, heroku run python manage.py collectstatic
@koorarapsc4713
@koorarapsc4713 4 жыл бұрын
I deploy a Django, selenium project in Heroku after successfully running it get an error H12 (Time out error) . If any idea to solve this type error [My project is an Instagram bot ] The Django part is the output of the bot
@CodeBand
@CodeBand 4 жыл бұрын
Sorry for the late reply. H12 - Request timeout Error code H12 indicates the app took over 30 seconds to respond to the Heroku router. Solution: Code that requires more than 30 seconds must run asynchronously (e.g., as a background job) in Heroku. For more info read Request Timeout in the Heroku DevCenter. So, if your script is taking more than 30 seconds, then you should consider doing it as a background job. (See django-celery for performing async. tasks) Thank you.
@olusegunodewole4356
@olusegunodewole4356 3 жыл бұрын
Insightful, straight to the point.
@CodeBand
@CodeBand 3 жыл бұрын
Thank you and keep going😊😊
@virinchimsk83
@virinchimsk83 4 жыл бұрын
Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command. I am getting like this I don't know why? please help me out of this .thnks in advance I had tried logs -tails but no use
@CodeBand
@CodeBand 4 жыл бұрын
This might be one of the cause of error -- Procfile path is not valid In the Procfile, web: gunicorn myproject.wsgi myproject.wsgi is the path to wsgi.py file, so myproject will be the directory that contatins wsgi.py file... You might have given the wrong path and hence the error, please let me know if the err resolves.
@utkarshgupta7476
@utkarshgupta7476 3 жыл бұрын
@@CodeBand not solved
@CodeBand
@CodeBand 3 жыл бұрын
It should...please check the config. again...😊
@pramodhvedula8314
@pramodhvedula8314 3 жыл бұрын
@@CodeBand i am trying to solve this error since last 2 days but cant
@jinayjain7664
@jinayjain7664 3 жыл бұрын
i am getting this error python can't open file 'manage.py' heroku while executing this command 'heroku run python manage.py migrate' please help
@CodeBand
@CodeBand 2 жыл бұрын
You might not be in the same directory which contains manage.py file.
@nibinappu6858
@nibinappu6858 3 ай бұрын
if there any way to verfy my account without adding payment informations , is it possible
@user-hp4ub2yi2b
@user-hp4ub2yi2b Жыл бұрын
Hi. I did it with yours instructions. But objects from my DB didn't appear on site page. I delete from gitignore all db mentions and commit-push again, but it doesn't work. Maybe you know where else the problem? (I have just 3 objects and without them the site page is too empty and not functional)
@CodeBand
@CodeBand Жыл бұрын
Sorry for the late reply... Was this fixed ?
@PCGAMER385
@PCGAMER385 3 жыл бұрын
Thanks very much. you helped me alot
@CodeBand
@CodeBand 3 жыл бұрын
Glad I could help!😊😊
@nacerchamseddine6097
@nacerchamseddine6097 3 жыл бұрын
Nice, thanks man ♥️
@CodeBand
@CodeBand 3 жыл бұрын
You're welcome 😊
@beautifulskn
@beautifulskn 3 жыл бұрын
Hey when I type git push heroku master it gives me this error : error: src refspec main does not match any error: failed to push some refs to 'heroku'
@CodeBand
@CodeBand 3 жыл бұрын
try, git push heroku main
@bhaveshsakla1121
@bhaveshsakla1121 2 жыл бұрын
I have admin in my project I have created it using "py manage.py createsuperuser" command before hosting. But after hosting I am not able to log in as admin. So how to use admin after hosting?
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... You've to run createsuperuser command in the server and then use that credentials to login. command : heroku run python manage.py createsuperuser
@divyar8402
@divyar8402 3 жыл бұрын
Youre a life saver!! thanks a tonne
@CodeBand
@CodeBand 3 жыл бұрын
Happy to help!
@creatively1208
@creatively1208 3 жыл бұрын
thank you sooooo much, sooooooooooooooooooooooooooooo much FINALLY
@CodeBand
@CodeBand 3 жыл бұрын
Glad to hear that😊
@maheshappikatla5004
@maheshappikatla5004 3 жыл бұрын
Super explanation bro👌👌
@CodeBand
@CodeBand 3 жыл бұрын
Thanks a lot bro :)
@Brk08
@Brk08 2 жыл бұрын
i did all what u did, but when i run the website i get : Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... Is this fixed?
@Brk08
@Brk08 2 жыл бұрын
Yes, thank you.
@SACSbeats
@SACSbeats 3 жыл бұрын
Thanks! It worked perfectly!
@yogeshagarwal8537
@yogeshagarwal8537 3 жыл бұрын
Do we need to install Heroku after downloading
@CodeBand
@CodeBand 2 жыл бұрын
Glad to help😊
@CodeBand
@CodeBand 2 жыл бұрын
If you meant Heroku CLI, yes.
@yogeshagarwal8537
@yogeshagarwal8537 2 жыл бұрын
@codeband thanks , i have done successfully
@CodeBand
@CodeBand 2 жыл бұрын
@@yogeshagarwal8537 Great👍🏻
@devendarreddydev8545
@devendarreddydev8545 3 жыл бұрын
Thank you very much bro, it helped me a lot
@CodeBand
@CodeBand 3 жыл бұрын
Glad to hear that... keep going😊
@muhammadtayyab253
@muhammadtayyab253 Жыл бұрын
After deploying my app on heroku when I go to the link it says There's nothing here, yet.
@CodeBand
@CodeBand Жыл бұрын
Sorry for the late reply... Seems like the site is not yet up...
@BerserkGamer
@BerserkGamer Жыл бұрын
where did you get the accent from?
@bukkaganesh6371
@bukkaganesh6371 2 жыл бұрын
when i am trying to deploy my django project on heroku getting these error "" server error(500)"" plz give me solution sir i have been trying from past few days still i didn't get solution pls help me sir
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply.... Is this fixed ?
@mikisali4239
@mikisali4239 3 жыл бұрын
thx a lot bro
@CodeBand
@CodeBand 3 жыл бұрын
Glad to help you out😊
@nikethsarabu2117
@nikethsarabu2117 Жыл бұрын
if git push heroku master has error saying"error: failed to push some refs to ******" what should be done?
@CodeBand
@CodeBand Жыл бұрын
Sorry for the late reply... Seems like master/main issue. Try git push heroku main
@CristianodePaula
@CristianodePaula 2 жыл бұрын
Great tutorial!!! Thanks
@CodeBand
@CodeBand 2 жыл бұрын
Glad it was helpful!
@aromachandrashekar9521
@aromachandrashekar9521 2 жыл бұрын
! [remote rejected] HEAD -> master (pre-receive hook declined) how can i slove this kind of error?
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... Was this solved ?
@ahmedamien2270
@ahmedamien2270 3 жыл бұрын
I got this error remote: Processing /tmp/build/80754af9/asgiref_1605055780383/work remote: ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/tmp/build/8 0754af9/asgiref_1605055780383/work'
@CodeBand
@CodeBand 3 жыл бұрын
Please check this issue in the stackoverflow... stackoverflow.com/questions/62847282/heroku-error-could-not-install-packages-due-to-an-environmenterror-errno-2-n
@user-bk6ry9ln6u
@user-bk6ry9ln6u 3 жыл бұрын
Great Tutorial Bro, Thanks a lot !! but I have questions, Is it gonna be ok if I use PostgreSQL? is need extra-installations steps??
@CodeBand
@CodeBand 3 жыл бұрын
The tutorial actually is about Django + Heroku + PostgreSQL...😊
@rajsrikantha7914
@rajsrikantha7914 3 жыл бұрын
. Thanks for your message & time. Take Care & God Bless You
@CodeBand
@CodeBand 3 жыл бұрын
You are so welcome😊
@ShoaibNaveed-xj8or
@ShoaibNaveed-xj8or Жыл бұрын
hey bro I got error that says : How can I resolve this issue ? ! [remote rejected] master -> master (pre-receive hook declined)
@tanaysheth107
@tanaysheth107 3 жыл бұрын
#help Instead of connecting git through command prompt, I pushed my django project to github using pycharm vcs operation and connected it to heroku When I press the deploy beanch button on heroku website, I get this error -----> Building on the Heroku-20 stack -----> Python app detected -----> Installing python-3.6.13 -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2 -----> Installing SQLite3 -----> Installing requirements with pip Collecting asgiref==3.3.1 Downloading asgiref-3.3.1-py3-none-any.whl (19 kB) Collecting dj-database-url==0.5.0 Downloading dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB) Collecting Django==3.1.7 Downloading Django-3.1.7-py3-none-any.whl (7.8 MB) Collecting django-heroku==0.3.1 Downloading django_heroku-0.3.1-py2.py3-none-any.whl (6.2 kB) Collecting gunicorn==20.0.4 Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB) Collecting psycopg2==2.8.6 Downloading psycopg2-2.8.6.tar.gz (383 kB) Collecting pytz==2021.1 Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting sqlparse==0.4.1 Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB) Collecting whitenoise==5.2.0 Downloading whitenoise-5.2.0-py2.py3-none-any.whl (19 kB) Building wheels for collected packages: psycopg2 Building wheel for psycopg2 (setup.py): started Building wheel for psycopg2 (setup.py): finished with status 'done' Created wheel for psycopg2: filename=psycopg2-2.8.6-cp36-cp36m-linux_x86_64.whl size=494326 sha256=145b0ce64043570444b4053bfe4e51e727f2ec190aafe9b335a74e328d7471c8 Stored in directory: /tmp/pip-ephem-wheel-cache-5ed8rxpz/wheels/cb/74/1b/4b65077db4eb0d85763050e60c5921398d2858945558352dd8 Successfully built psycopg2 Installing collected packages: asgiref, dj-database-url, pytz, sqlparse, Django, psycopg2, whitenoise, django-heroku, gunicorn Successfully installed Django-3.1.7 asgiref-3.3.1 dj-database-url-0.5.0 django-heroku-0.3.1 gunicorn-20.0.4 psycopg2-2.8.6 pytz-2021.1 sqlparse-0.4.1 whitenoise-5.2.0 -----> $ python manage.py collectstatic --noinput 132 static files copied to '/tmp/build_94b81c5b/staticfiles', 404 post-processed. -----> App not compatible with buildpack: buildpack-registry.s3.amazonaws.com/buildpacks/heroku/java.tgz Could not find a pom.xml file! Please check that it exists and is committed to Git. More info: devcenter.heroku.com/articles/buildpacks#detection-failure ! Push failed please help me
@CodeBand
@CodeBand 3 жыл бұрын
Sounds like something with JAVA... ( Could not find a pom.xml file! Please check that it exists and is committed to Git. ) Please check everything once again (Procfile, requirements.txt and so on.) And also make sure you've created the correct app in Heroku (Python App)
@anushalekhireddy9732
@anushalekhireddy9732 3 жыл бұрын
after deploying how will the admin have access? we are using sqlite
@CodeBand
@CodeBand 3 жыл бұрын
You can create a superuser by typing in : heroku run python manage.py createsuperuser And then you can use that credential to log in to Admin panel. All these things are already discussed in the video itself. NB : Using sqlite in production is not recommended.
@mjhiremathhiremath3237
@mjhiremathhiremath3237 3 жыл бұрын
remote: -----> Python app detected remote: -----> Installing python-3.6.12 remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2 remote: -----> Installing SQLite3 remote: -----> Installing requirements with pip remote: Collecting alabaster==0.7.12 remote: Downloading alabaster-0.7.12-py2.py3-none-any.whl (14 kB) remote: ERROR: Could not find a version that satisfies the requirement anaconda-client==1.7.2 (from -r /tmp/build_61b7b4e1/requirements.txt (line 2)) (from versions: 1.1.1, 1.2.2) remote: ERROR: No matching distribution found for anaconda-client==1.7.2 (from -r /tmp/build_61b7b4e1/requirements.txt (line 2)) remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to dentisit1. remote: To git.heroku.com/dentisit1.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git.heroku.com/dentisit1.git'
@CodeBand
@CodeBand 3 жыл бұрын
remote: ERROR: Could not find a version that satisfies the requirement anaconda-client==1.7.2 (from -r /tmp/build_61b7b4e1/requirements.txt (line 2)) (from versions: 1.1.1, 1.2.2) This is the error.... Please check the package version and its compatibility with the Python version in Heroku build..by default it uses 3.6, I believe. You can change the version of Python in Heroku by specifying the version in a file named runtime.txt Check these articles : devcenter.heroku.com/articles/python-runtimes devcenter.heroku.com/articles/python-support#specifying-a-python-version
@sriram9786
@sriram9786 3 жыл бұрын
​@@CodeBand this error is due to static files if is heroku config:set DISABLE_COLLECTSTATIC=1 then it is working help me with this please changed the python version but it still shows the error bro please help me thank you .😰😘. I solved the error see the bottom answer from me
@sriram9786
@sriram9786 3 жыл бұрын
This is due to static files TRY executing this command before trying so heroku config:set DISABLE_COLLECTSTATIC=1
@mjhiremathhiremath3237
@mjhiremathhiremath3237 3 жыл бұрын
i got error please help me ! [remote rejected] master -> master (pre-receive hook declined)
@CodeBand
@CodeBand 3 жыл бұрын
Please check the reply in your previous comment.
@kartikeyvhebbar
@kartikeyvhebbar 3 жыл бұрын
@@CodeBand Couldn't find the previous reply. Help me with the same error please
@ramadhanirajabu-cx2xx
@ramadhanirajabu-cx2xx Жыл бұрын
i got a problem when i create heroku app it needs to make payment why?
@CodeBand
@CodeBand Жыл бұрын
Heroku seems to have removed the free payment plan.
@VishantNShah
@VishantNShah 3 жыл бұрын
heyy....until the heroku login step i have done all the steps in vs code terminal and it worked....after i entered heroku command...error occured of not such directory ....so i ran the same steps from heroku login in cmd ....server was created but git push was not done as i have done earlier steps in vs code terminal....so i have to repeat all the steps again or just clone the directory and start from heroku login?.....help!!
@CodeBand
@CodeBand 3 жыл бұрын
Sorry for the late reply and regarding this, it should've worked even regardless of which terminal you are using. Please let me know the current update...
@VishantNShah
@VishantNShah 3 жыл бұрын
@@CodeBand ok wait than i will again do the same process and will update you...thanks for seeing this.
@CodeBand
@CodeBand 3 жыл бұрын
@@VishantNShah Okay.
@marys5583
@marys5583 4 жыл бұрын
I m getting.. 'notepad' is not recognized as an internal or external comman operable program or batch file
@CodeBand
@CodeBand 4 жыл бұрын
Please let me know what you meant by that 'notepad'. Thanks :)
@shama.niyazi
@shama.niyazi 3 жыл бұрын
Thanks man 🙏 God bless you
@CodeBand
@CodeBand 3 жыл бұрын
Glad it helped😊
@rroctav
@rroctav 3 жыл бұрын
Hi! I am having issues with pushing migrations to heroku. When I do heroku run python manage.py migrate I get this error: django.db.utils.ProgrammingError: relation "myBlog_category" does not exist LINE 1: ...g_category"."name", "myBlog_category"."name" FROM "myBlog_ca... I searched this error all over the internet and can't seem to find an answer to it. Any advice?
@CodeBand
@CodeBand 3 жыл бұрын
Sorry for the late reply... Seems like issues with the blog_category...
@krichloreji6322
@krichloreji6322 3 жыл бұрын
Error.git is not recognized as an internal or external command. Operable program or batch file
@CodeBand
@CodeBand 3 жыл бұрын
By typing what command are you getting this error?
@sharad3877
@sharad3877 3 жыл бұрын
i am using sqlite3 database in my e-com project. So the project is deployed on heroku but the products which are stored in database are not showing live
@CodeBand
@CodeBand 3 жыл бұрын
Using sqlite in production is not recommended. Better to use something like PostgreSQL or similar... (As a sidenote, sqlite is a file based DB, so with the Heroku nature, it will not persist those data. )
@sharad3877
@sharad3877 3 жыл бұрын
@@CodeBand Thank you for the information
@samandarshoyimov5580
@samandarshoyimov5580 2 жыл бұрын
Import django_heroku error And collecstatic erorr. I have I coud not find any video solved this problem
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... Is this fixed ?
@shriyanskaushik1148
@shriyanskaushik1148 3 жыл бұрын
What if I have used MySQL instead of SQLite for database in my project. Does it make any changes in these steps?
@CodeBand
@CodeBand 3 жыл бұрын
For MySQL, you have to use ClearDB MySQL Add-on in Heroku.
@Flavour.Fizz.157
@Flavour.Fizz.157 4 жыл бұрын
After running my application I''m getting H10 error.. Pls help me.. My wsgi file is under TWEET directory so I typed web: gunicorn TWEET.wsgi And it's showing no module name 'TWEET' Pls help me
@CodeBand
@CodeBand 4 жыл бұрын
web: gunicorn myproject.wsgi This is the structure of Procfile, where myproject is the directory containing wsgi.py file, cross check everything is correct. PS: Not sure if all caps TWEET is an issue, check and confirm. (I think it would not be an issue) Also check this issue here : github.com/realpython/flask-boilerplate/issues/43
@zink4224
@zink4224 3 жыл бұрын
Hi, When I am installing django-heroku, this error popped off 'pg_config executable not found.' pls help
@CodeBand
@CodeBand 3 жыл бұрын
Did the above solution worked?
@CodeBand
@CodeBand 3 жыл бұрын
Thanks for posting👍🏻
@zink4224
@zink4224 3 жыл бұрын
Sam Ladbrook thanks you so much
@zink4224
@zink4224 3 жыл бұрын
Sam Ladbrook I got it fixed using the solution you give
@rajsrikantha7914
@rajsrikantha7914 3 жыл бұрын
.HI I have a problem . I could not install django-heroku? Any solution please?
@CodeBand
@CodeBand 3 жыл бұрын
Please let me know the error in the console, so as to help you...
@muhammadrizal3624
@muhammadrizal3624 4 жыл бұрын
Thanks :)
@CodeBand
@CodeBand 4 жыл бұрын
Keep going👍🏻👍🏻
@englishberry6710
@englishberry6710 2 жыл бұрын
git, Heroku: pre-receive hook declined
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... Some part of config. might've missed or done incorrectly... See this : stackoverflow.com/questions/8216586/git-heroku-pre-receive-hook-declined
@irfanhaque5388
@irfanhaque5388 3 жыл бұрын
import psycopg2 as Database ModuleNotFoundError: No module named 'psycopg2' i am getting this error during heroku run python manage.py migrate. please help
@CodeBand
@CodeBand 3 жыл бұрын
stackoverflow.com/questions/13620051/heroku-push-of-django-app-gets-no-module-named-psycopg2-extensions Please check this out😊
@lenilunderman3697
@lenilunderman3697 3 жыл бұрын
How about static files? Does that tutorial covers that too or do I need to do any extra step? Thank you.
@CodeBand
@CodeBand 3 жыл бұрын
It works perfectly for static files too. The configuration for that is also implemented in this single video😊😊
@lenilunderman3697
@lenilunderman3697 3 жыл бұрын
@@CodeBand I followed your tutorial and still got an error deploying my application. Could you check it out if you have any idea of what is happening? Thank you. stackoverflow.com/questions/65912695/django-deployment-no-web-processes
@yogeshagarwal8537
@yogeshagarwal8537 3 жыл бұрын
Do we need to install Heroku after downloading
@CodeBand
@CodeBand 2 жыл бұрын
If you meant Heroku CLI, yes.
@yogeshkunkawalekar7341
@yogeshkunkawalekar7341 3 жыл бұрын
Thank you for this video.
@CodeBand
@CodeBand 3 жыл бұрын
Glad to hear that😊
@rajsrikantha7914
@rajsrikantha7914 3 жыл бұрын
. Hi thanks for the message. So why I still get H14 error message. Procfile has no extention. Any idea please?
@CodeBand
@CodeBand 3 жыл бұрын
Try this one: devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running
@Flavour.Fizz.157
@Flavour.Fizz.157 4 жыл бұрын
After running heroku run python manage.py migrate I'm getting error can't open file manage.py no such file or directory
@Flavour.Fizz.157
@Flavour.Fizz.157 4 жыл бұрын
When I run python manage.py runserver I'm getting correct output but when I run heroku run python manage.py migrate I'm getting error
@CodeBand
@CodeBand 4 жыл бұрын
​@@Flavour.Fizz.157 Looks like something went wrong in the server...try like this.. heroku run bash python manage.py runserver Check if this works👍🏻
@vivekverma4012
@vivekverma4012 3 жыл бұрын
@@CodeBand it's showing 'cannot execute binary file'
@vivekverma4012
@vivekverma4012 3 жыл бұрын
Mine too same problem
@CodeBand
@CodeBand 3 жыл бұрын
@@vivekverma4012 try running python manage.py migrate
@chandralekhapolepalle6009
@chandralekhapolepalle6009 3 жыл бұрын
Hi, This video is really helpful. Thanks a lot for making it simple.. I did everything as it is but images are not loaded from database and login authentication is getting failed but in local host it is working properly. Can you kindly help me to solve this issue? Thanks in advance.
@CodeBand
@CodeBand 3 жыл бұрын
As far as images, it will not be handled by Heroku, you might have to use AWS S3 or similar services for that... This is a good video tutorial : kzfaq.info/get/bejne/odpjjdeInrO8mKs.html This is another nice article: simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html And authentication should've worked perfectly, maybe you forgot to migrate or createsuperuser, in case you're using admin.
@chandralekhapolepalle6009
@chandralekhapolepalle6009 3 жыл бұрын
@@CodeBand Thank you so much! I will try.
@luizluz663
@luizluz663 3 жыл бұрын
Thank you very much !!!
@CodeBand
@CodeBand 3 жыл бұрын
You are welcome!
@gummadinishna9067
@gummadinishna9067 4 жыл бұрын
After deploying the app in heroku, I am getting this error when I log in into admin portal '/admin/' - relation "auth_user" does not exist LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user...
@CodeBand
@CodeBand 4 жыл бұрын
That's because you haven't run your migrations in production server. Just type in "heroku run python manage.py migrate" (without quotes) in your terminal and you're good to go... Thanks and let me know the progress... :)
@gummadinishna9067
@gummadinishna9067 4 жыл бұрын
Yeah, I got that. Thank You But when I log in, it shows - Programming Error column does not exist.
@gummadinishna9067
@gummadinishna9067 4 жыл бұрын
All the columns exists, everything is working locally but not after deploying. I checked everything but couldn’t resolve this error. Please let me know the error.
@CodeBand
@CodeBand 4 жыл бұрын
Sorry for being late.. Have you run heroku run python manage.py migrate? If you have done that, please let me know the output. Regards
@panchamjain6987
@panchamjain6987 3 жыл бұрын
Server Error (500) when Debug = False please help!!
@CodeBand
@CodeBand 3 жыл бұрын
Ok...it would be the problem with static files...make sure all the references in static files exists... Check the answers in this link... stackoverflow.com/questions/44160666/valueerror-missing-staticfiles-manifest-entry-for-favicon-ico
@akagragupta8895
@akagragupta8895 3 жыл бұрын
broo litt thank you so much
@CodeBand
@CodeBand 3 жыл бұрын
Happy to help❤️
@rajsrikantha7914
@rajsrikantha7914 3 жыл бұрын
Hi Is it before hosting the web on heroku I have to deactivate virtual env? Thanks
@CodeBand
@CodeBand 3 жыл бұрын
It's not mandatory to deactivate venv.
@rajsrikantha7914
@rajsrikantha7914 3 жыл бұрын
. Hi I have H14 Error when hosting in Heroku. Any help please to solve the problem. Thanks
@CodeBand
@CodeBand 3 жыл бұрын
You might have done something incorrectly, please cross-check the steps... Meanwhile, just check this out...devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running
@poonambisht1394
@poonambisht1394 4 жыл бұрын
its helpful, thanks
@CodeBand
@CodeBand 4 жыл бұрын
Glad it helped😊
@kiranv6495
@kiranv6495 4 жыл бұрын
Thanks Code Band.
@CodeBand
@CodeBand 4 жыл бұрын
Welcome and keep supporting :)
@krithikaramesh4793
@krithikaramesh4793 4 жыл бұрын
By typing the command "heroku open" I'm getting web page name as application error
@CodeBand
@CodeBand 4 жыл бұрын
Please type in this command in your terminal... heroku logs --tail And then open the web page again..and you can see the errors there... Please let me know if the error is resolved...Thank you...
@rameshvadapalliramesh5506
@rameshvadapalliramesh5506 4 жыл бұрын
@@CodeBand (myapp) E:\django_projects\app> heroku logs --tail --app todo » Error: You do not have access to the app todo. » » Error ID: forbidden
@peterdavids31
@peterdavids31 3 жыл бұрын
@@rameshvadapalliramesh5506 Possibly because you forgot to login to Heroku.
@FaizanAnsari-yw8bn
@FaizanAnsari-yw8bn 3 жыл бұрын
For deploying on heroku , gibhub account is needed or not?
@CodeBand
@CodeBand 3 жыл бұрын
Please watch the whole video, if possible. I have clearly mentioned how things work in Heroku... As for the answer, the Heroku platform uses Git as the primary means for deploying applications (there are other ways to transport your source code to Heroku, including via an API). (Source : Heroku Docs) Keep going👍🏻
@Rahilkzi2003
@Rahilkzi2003 4 жыл бұрын
Everything is great 😊 But the images not showing in website Who I uploaded from admin dashboard???
@Rahilkzi2003
@Rahilkzi2003 4 жыл бұрын
Can you tell me what to do?
@Rahilkzi2003
@Rahilkzi2003 4 жыл бұрын
In solution
@CodeBand
@CodeBand 4 жыл бұрын
As far as the media files are concerned, Heroku will not handle those, you might have to use external sites like aws s3. This is a good video tutorial : kzfaq.info/get/bejne/odpjjdeInrO8mKs.html This is another nice article: simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html
@Rahilkzi2003
@Rahilkzi2003 4 жыл бұрын
Thanks 😊
@robinvarghese9053
@robinvarghese9053 4 жыл бұрын
while making a copy of the project how the env folder is created??
@robinvarghese9053
@robinvarghese9053 4 жыл бұрын
i got it
@CodeBand
@CodeBand 4 жыл бұрын
Sorry for being late, anyway, cool..keep going👍🏻
@prajwalpoojari3545
@prajwalpoojari3545 2 жыл бұрын
Its showing application error, please help me out
@CodeBand
@CodeBand 2 жыл бұрын
Some issue with Procfile, please check for any typo...
@tintin-mc7yj
@tintin-mc7yj 2 жыл бұрын
works with mysql as database?
@CodeBand
@CodeBand 2 жыл бұрын
For mysql, you can use a Heroku addon called cleardb mysql
@vamsi-tq5rv
@vamsi-tq5rv 4 жыл бұрын
This is my error C:\Users\LENOVO\Desktop\mainproject\database>git push heroku master Enumerating objects: 107, done. Counting objects: 100% (107/107), done. Delta compression using up to 4 threads Compressing objects: 100% (103/103), done. Writing objects: 100% (107/107), 93.13 MiB | 14.73 MiB/s, done. Total 107 (delta 23), reused 0 (delta 0), pack-reused 0 """ atlast when i type git push heroku master i am getting that error This "-" symbol is blinking libraries are not installing Why sir. if possible solve the error.
@CodeBand
@CodeBand 4 жыл бұрын
Getting stuck in "-"? Most probably it will be some network issue...try again...
@vamsi-tq5rv
@vamsi-tq5rv 4 жыл бұрын
@@CodeBand i tried many times but still blinking sir can you solve it
@CodeBand
@CodeBand 4 жыл бұрын
@@vamsi-tq5rv There are only two possibilities; either heroku error or your side...if it was heroku side, then it would have fixed by now, so it seems to be your side, now if it was some errors in django side, it would have given that error in the console, so the only possible way is some internet connectivity issue... Try all the steps of deployment from start, ie., from making a copy of project and then do the rest of steps, it should work👍🏻
@vamsi-tq5rv
@vamsi-tq5rv 4 жыл бұрын
@@CodeBand ok sir can you give screen share to me to solve the error sir
@CodeBand
@CodeBand 4 жыл бұрын
@@vamsi-tq5rv I'm currently very busy with my schedule brother...I'm pretty sure you can definitely solve the issue...if nothing works, just start from first, (deployment). Keep up the momentum and keep going👍🏻
@shahbajkhan555
@shahbajkhan555 2 жыл бұрын
My error app crashed why it shows like this
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... Did you managed to fix the issue.. ?
@santhiya5606
@santhiya5606 3 жыл бұрын
I got this error.. pls help me Processing /tmp/build/80754af9/asgiref_1594338739818/work ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/tmp/build/80754af9/asgiref_1594338739818/work' ! Push rejected, failed to compile Python app. ! Push failed
@CodeBand
@CodeBand 3 жыл бұрын
Please check this issue in the stackoverflow... stackoverflow.com/questions/62847282/heroku-error-could-not-install-packages-due-to-an-environmenterror-errno-2-n
@rab_x6958
@rab_x6958 3 жыл бұрын
Thank you so much brow. how many little projects I can upload to this site ?
@CodeBand
@CodeBand 3 жыл бұрын
Heroku gives you access to upload unlimited projects, as of my view, but the total hours in a month is limited to 1000.
@rab_x6958
@rab_x6958 3 жыл бұрын
@@CodeBand thanks for the information.
@nagendra9853
@nagendra9853 2 жыл бұрын
Heroku any Asking charges for deploying
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... No, it's free, provided you will be having limitations such as 1000 hrs/month etc... Read more on this : www.heroku.com/free
@biswajitpaloi2121
@biswajitpaloi2121 2 жыл бұрын
How can I open admin page after host
@CodeBand
@CodeBand 2 жыл бұрын
Sorry for the late reply... You can go to /admin/ to access admin panel.
@shabeeeb6400
@shabeeeb6400 11 ай бұрын
bro do you have deploy django in aws
@cagdaskarabay3025
@cagdaskarabay3025 3 жыл бұрын
i have an error that slug size is to large. i guess , i use tensorflow for gpu. Anyone have any idea that I can fix the problem ?
@CodeBand
@CodeBand 3 жыл бұрын
stackoverflow.com/questions/61062303/deploy-python-app-to-heroku-slug-size-too-large
@cagdaskarabay3025
@cagdaskarabay3025 3 жыл бұрын
@@CodeBand According to the explanation in the link you gave above, Heroku does not support gpu. if i dockerize my project, maybe i'll solve it
@CodeBand
@CodeBand 3 жыл бұрын
@@cagdaskarabay3025 👍🏻
@rheumaticharm9551
@rheumaticharm9551 3 жыл бұрын
So to upload with heroku we need to use postgre?
@rheumaticharm9551
@rheumaticharm9551 3 жыл бұрын
Pls bro answer? Or if you tell me the detail of settings.py where database configuration
@CodeBand
@CodeBand 3 жыл бұрын
@@rheumaticharm9551 We can use any of the production-level DBs such as Postgres, MySQL etc... And I have clearly showed how to use Postgres in the video itself...
@rheumaticharm9551
@rheumaticharm9551 3 жыл бұрын
@@CodeBand omg instant reply. Your are really dedicated bro. I watched the video again, and I got confused because u didn't change anything in settings.py in databases. Are the changes coming from installed apps?
@CodeBand
@CodeBand 3 жыл бұрын
​@@rheumaticharm9551 First of all, thanks for the complement. It means a lot to me😊 and, I haven't added any line of code that clearly modifies the DATABASES section, but what I added was a piece of code at the end of settings.py file.. django_heroku.settings(locals()) This one liner will actually hooks up a PostgreSQL DB for you along with updating the DATABASES section. Now, your question seems to be difficult, to upload to heroku, we need postgres.. If you meant user uploading by "upload", then, you have to also use some file services like AWS S3 or similar... Here's a good video you can refer : kzfaq.info/get/bejne/odpjjdeInrO8mKs.html
@rheumaticharm9551
@rheumaticharm9551 3 жыл бұрын
@@CodeBand thanks for the reply keep up the good work👍
@pritammaity4978
@pritammaity4978 4 жыл бұрын
getting this error remote: Building source: remote: remote: ! No default language could be detected for this app. remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this applica tion automatically. remote: See devcenter.heroku.com/articles/buildpacks remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to bmaity3. remote: To git.heroku.com/bmaity3.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git.heroku.com/bmaity3.git'
@CodeBand
@CodeBand 4 жыл бұрын
requirements.txt file might be missing in project root directory (where manage.py resides) or you might have misspelled requirements.txt ....Please check and let me know once the issue is fixed...Thank you.. :)
How to Deploy Django App on Heroku with PostgreSQL Database
14:38
Heroku Webhosting for Django - Python Django Dentist Website #12
22:28
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 11 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 22 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 23 МЛН
How To Deploy A Django Project To Heroku
14:02
Code With Tomi
Рет қаралды 48 М.
Free 2020 Django Website Hosting in 5 Minutes - Heroku
9:28
StudyGyaan
Рет қаралды 78 М.
Deploy a Django App to Heroku
20:33
Pretty Printed
Рет қаралды 77 М.
Heroku Is Dead, Here's What I Recommend
11:59
Theo - t3․gg
Рет қаралды 258 М.
Deploy Django Project On Vercel - Free Hosting Provider
14:51
CodeWithMuh
Рет қаралды 7 М.
Deploying  a Django App to Heroku
7:57
Dennis Ivy
Рет қаралды 18 М.
What Django Deployment is Really About by James Walters
25:44
DjangoCon US
Рет қаралды 2,6 М.
9 - How to Deploy Django Project To Heroku | Easiest Way! | 2024
17:25
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 11 МЛН