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!
@CodeBand2 жыл бұрын
Very glad to hear that... keep rocking!
@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 Жыл бұрын
Glad to hear that :)
@peterdavids313 жыл бұрын
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.
@CodeBand3 жыл бұрын
Glad I could help and git is great btw when compared to ftp when we actually starts to update the project files...
@peterdavids313 жыл бұрын
@@CodeBand Got it.
@CodeBand3 жыл бұрын
@@peterdavids31 Keep going👍🏻
@adamthesoftwareengineer3 жыл бұрын
You dropped this 👑, keep it up bro
@CodeBand3 жыл бұрын
Thanks 💯
@sue32452 жыл бұрын
The best tutorial this is after hours of trying different solutions
@CodeBand2 жыл бұрын
Very glad to hear that...
@siddharthsingh23693 жыл бұрын
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 !!!!!!
@CodeBand3 жыл бұрын
Glad to hear that😊
@satyamdubey62263 жыл бұрын
best tutorial for deploying on heroku easy and straight forward ...thanks bro
@CodeBand3 жыл бұрын
Thanks a lot brother...keep going👍🏻
@manikantakallakuri31944 жыл бұрын
superb bro.. finally its working.. a lots of love from my side..
@CodeBand4 жыл бұрын
Thanks a lot brother..very glad to hear that❤️
@bigrevkev553 жыл бұрын
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.
@CodeBand3 жыл бұрын
Glad I could help😊
@ulvidamirli27583 жыл бұрын
Perfect tutorial! Thanks for the written guide! It helped me a lot!!!
@CodeBand3 жыл бұрын
Glad it helped! Keep going😊
@plusk3434 жыл бұрын
Oooh, pycharm PROFESSIONAL!!!
@CodeBand4 жыл бұрын
😊 Get it free with Github Students Pack.
@ahmeddahmani91003 жыл бұрын
simple but enough ! May Allah bless you😊
@CodeBand3 жыл бұрын
Thanks a lot😊
@sankalpmukim10523 жыл бұрын
Thanks a lot! man! this video really helped me publish my first app
@CodeBand3 жыл бұрын
Very glad to hear that...Thanks a lot for the support😊
@msa3553 жыл бұрын
Great tutorial, at last I could do after a long time and hard effort, tutorial after tutorials, thanks.....
@CodeBand3 жыл бұрын
Glad to hear that...keep going😊
@mayanktripathi4u3 жыл бұрын
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.
@CodeBand3 жыл бұрын
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.
@adarsaswain36233 жыл бұрын
One of the best video for heroku
@CodeBand3 жыл бұрын
Very glad to hear that😊
@thewillpowermyanmar3 жыл бұрын
i got "heroku" isn't recognized in the terminal even after reopen my editor and my cmd. help me bro
@CodeBand3 жыл бұрын
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-up8fg2 жыл бұрын
You deserve sub with bell and i did it keep it up.
@CodeBand2 жыл бұрын
Thanks a lot😊
@Taziamoma3 жыл бұрын
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? "
@CodeBand3 жыл бұрын
Please post the full traceback in the console...so that I could find the error😊
@Lorem045 ай бұрын
your a life saver.. Thanks!
@rajsrikantha79143 жыл бұрын
. Its really good video and worked well. Thanks for offering help. Take Care & God Bless You
@CodeBand3 жыл бұрын
Glad it helped..😊
@manbirjudge84153 жыл бұрын
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.
@CodeBand3 жыл бұрын
That's great... Keep up the good work... and Of course, you can share the link...
@manbirjudge84153 жыл бұрын
@@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.
@CodeBand3 жыл бұрын
@@manbirjudge8415 Keep up the good work😊
@shourovdip37064 жыл бұрын
thanks man! it finally worked!!! :D
@CodeBand4 жыл бұрын
Glad to hear that❤️
@mdakramkhan1664 жыл бұрын
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
@CodeBand4 жыл бұрын
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
@koorarapsc47134 жыл бұрын
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
@CodeBand4 жыл бұрын
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.
@olusegunodewole43563 жыл бұрын
Insightful, straight to the point.
@CodeBand3 жыл бұрын
Thank you and keep going😊😊
@virinchimsk834 жыл бұрын
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
@CodeBand4 жыл бұрын
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.
@utkarshgupta74763 жыл бұрын
@@CodeBand not solved
@CodeBand3 жыл бұрын
It should...please check the config. again...😊
@pramodhvedula83143 жыл бұрын
@@CodeBand i am trying to solve this error since last 2 days but cant
@jinayjain76643 жыл бұрын
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
@CodeBand2 жыл бұрын
You might not be in the same directory which contains manage.py file.
@nibinappu68583 ай бұрын
if there any way to verfy my account without adding payment informations , is it possible
@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 Жыл бұрын
Sorry for the late reply... Was this fixed ?
@PCGAMER3853 жыл бұрын
Thanks very much. you helped me alot
@CodeBand3 жыл бұрын
Glad I could help!😊😊
@nacerchamseddine60973 жыл бұрын
Nice, thanks man ♥️
@CodeBand3 жыл бұрын
You're welcome 😊
@beautifulskn3 жыл бұрын
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'
@CodeBand3 жыл бұрын
try, git push heroku main
@bhaveshsakla11212 жыл бұрын
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?
@CodeBand2 жыл бұрын
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
@divyar84023 жыл бұрын
Youre a life saver!! thanks a tonne
@CodeBand3 жыл бұрын
Happy to help!
@creatively12083 жыл бұрын
thank you sooooo much, sooooooooooooooooooooooooooooo much FINALLY
@CodeBand3 жыл бұрын
Glad to hear that😊
@maheshappikatla50043 жыл бұрын
Super explanation bro👌👌
@CodeBand3 жыл бұрын
Thanks a lot bro :)
@Brk082 жыл бұрын
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
@CodeBand2 жыл бұрын
Sorry for the late reply... Is this fixed?
@Brk082 жыл бұрын
Yes, thank you.
@SACSbeats3 жыл бұрын
Thanks! It worked perfectly!
@yogeshagarwal85373 жыл бұрын
Do we need to install Heroku after downloading
@CodeBand2 жыл бұрын
Glad to help😊
@CodeBand2 жыл бұрын
If you meant Heroku CLI, yes.
@yogeshagarwal85372 жыл бұрын
@codeband thanks , i have done successfully
@CodeBand2 жыл бұрын
@@yogeshagarwal8537 Great👍🏻
@devendarreddydev85453 жыл бұрын
Thank you very much bro, it helped me a lot
@CodeBand3 жыл бұрын
Glad to hear that... keep going😊
@muhammadtayyab253 Жыл бұрын
After deploying my app on heroku when I go to the link it says There's nothing here, yet.
@CodeBand Жыл бұрын
Sorry for the late reply... Seems like the site is not yet up...
@BerserkGamer Жыл бұрын
where did you get the accent from?
@bukkaganesh63712 жыл бұрын
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
@CodeBand2 жыл бұрын
Sorry for the late reply.... Is this fixed ?
@mikisali42393 жыл бұрын
thx a lot bro
@CodeBand3 жыл бұрын
Glad to help you out😊
@nikethsarabu2117 Жыл бұрын
if git push heroku master has error saying"error: failed to push some refs to ******" what should be done?
@CodeBand Жыл бұрын
Sorry for the late reply... Seems like master/main issue. Try git push heroku main
@CristianodePaula2 жыл бұрын
Great tutorial!!! Thanks
@CodeBand2 жыл бұрын
Glad it was helpful!
@aromachandrashekar95212 жыл бұрын
! [remote rejected] HEAD -> master (pre-receive hook declined) how can i slove this kind of error?
@CodeBand2 жыл бұрын
Sorry for the late reply... Was this solved ?
@ahmedamien22703 жыл бұрын
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'
@CodeBand3 жыл бұрын
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-bk6ry9ln6u3 жыл бұрын
Great Tutorial Bro, Thanks a lot !! but I have questions, Is it gonna be ok if I use PostgreSQL? is need extra-installations steps??
@CodeBand3 жыл бұрын
The tutorial actually is about Django + Heroku + PostgreSQL...😊
@rajsrikantha79143 жыл бұрын
. Thanks for your message & time. Take Care & God Bless You
@CodeBand3 жыл бұрын
You are so welcome😊
@ShoaibNaveed-xj8or Жыл бұрын
hey bro I got error that says : How can I resolve this issue ? ! [remote rejected] master -> master (pre-receive hook declined)
@tanaysheth1073 жыл бұрын
#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
@CodeBand3 жыл бұрын
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)
@anushalekhireddy97323 жыл бұрын
after deploying how will the admin have access? we are using sqlite
@CodeBand3 жыл бұрын
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.
@mjhiremathhiremath32373 жыл бұрын
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'
@CodeBand3 жыл бұрын
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
@sriram97863 жыл бұрын
@@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
@sriram97863 жыл бұрын
This is due to static files TRY executing this command before trying so heroku config:set DISABLE_COLLECTSTATIC=1
@mjhiremathhiremath32373 жыл бұрын
i got error please help me ! [remote rejected] master -> master (pre-receive hook declined)
@CodeBand3 жыл бұрын
Please check the reply in your previous comment.
@kartikeyvhebbar3 жыл бұрын
@@CodeBand Couldn't find the previous reply. Help me with the same error please
@ramadhanirajabu-cx2xx Жыл бұрын
i got a problem when i create heroku app it needs to make payment why?
@CodeBand Жыл бұрын
Heroku seems to have removed the free payment plan.
@VishantNShah3 жыл бұрын
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!!
@CodeBand3 жыл бұрын
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...
@VishantNShah3 жыл бұрын
@@CodeBand ok wait than i will again do the same process and will update you...thanks for seeing this.
@CodeBand3 жыл бұрын
@@VishantNShah Okay.
@marys55834 жыл бұрын
I m getting.. 'notepad' is not recognized as an internal or external comman operable program or batch file
@CodeBand4 жыл бұрын
Please let me know what you meant by that 'notepad'. Thanks :)
@shama.niyazi3 жыл бұрын
Thanks man 🙏 God bless you
@CodeBand3 жыл бұрын
Glad it helped😊
@rroctav3 жыл бұрын
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?
@CodeBand3 жыл бұрын
Sorry for the late reply... Seems like issues with the blog_category...
@krichloreji63223 жыл бұрын
Error.git is not recognized as an internal or external command. Operable program or batch file
@CodeBand3 жыл бұрын
By typing what command are you getting this error?
@sharad38773 жыл бұрын
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
@CodeBand3 жыл бұрын
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. )
@sharad38773 жыл бұрын
@@CodeBand Thank you for the information
@samandarshoyimov55802 жыл бұрын
Import django_heroku error And collecstatic erorr. I have I coud not find any video solved this problem
@CodeBand2 жыл бұрын
Sorry for the late reply... Is this fixed ?
@shriyanskaushik11483 жыл бұрын
What if I have used MySQL instead of SQLite for database in my project. Does it make any changes in these steps?
@CodeBand3 жыл бұрын
For MySQL, you have to use ClearDB MySQL Add-on in Heroku.
@Flavour.Fizz.1574 жыл бұрын
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
@CodeBand4 жыл бұрын
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
@zink42243 жыл бұрын
Hi, When I am installing django-heroku, this error popped off 'pg_config executable not found.' pls help
@CodeBand3 жыл бұрын
Did the above solution worked?
@CodeBand3 жыл бұрын
Thanks for posting👍🏻
@zink42243 жыл бұрын
Sam Ladbrook thanks you so much
@zink42243 жыл бұрын
Sam Ladbrook I got it fixed using the solution you give
@rajsrikantha79143 жыл бұрын
.HI I have a problem . I could not install django-heroku? Any solution please?
@CodeBand3 жыл бұрын
Please let me know the error in the console, so as to help you...
@muhammadrizal36244 жыл бұрын
Thanks :)
@CodeBand4 жыл бұрын
Keep going👍🏻👍🏻
@englishberry67102 жыл бұрын
git, Heroku: pre-receive hook declined
@CodeBand2 жыл бұрын
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
@irfanhaque53883 жыл бұрын
import psycopg2 as Database ModuleNotFoundError: No module named 'psycopg2' i am getting this error during heroku run python manage.py migrate. please help
@CodeBand3 жыл бұрын
stackoverflow.com/questions/13620051/heroku-push-of-django-app-gets-no-module-named-psycopg2-extensions Please check this out😊
@lenilunderman36973 жыл бұрын
How about static files? Does that tutorial covers that too or do I need to do any extra step? Thank you.
@CodeBand3 жыл бұрын
It works perfectly for static files too. The configuration for that is also implemented in this single video😊😊
@lenilunderman36973 жыл бұрын
@@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
@yogeshagarwal85373 жыл бұрын
Do we need to install Heroku after downloading
@CodeBand2 жыл бұрын
If you meant Heroku CLI, yes.
@yogeshkunkawalekar73413 жыл бұрын
Thank you for this video.
@CodeBand3 жыл бұрын
Glad to hear that😊
@rajsrikantha79143 жыл бұрын
. Hi thanks for the message. So why I still get H14 error message. Procfile has no extention. Any idea please?
@CodeBand3 жыл бұрын
Try this one: devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running
@Flavour.Fizz.1574 жыл бұрын
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.1574 жыл бұрын
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
@CodeBand4 жыл бұрын
@@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👍🏻
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.
@CodeBand3 жыл бұрын
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.
@chandralekhapolepalle60093 жыл бұрын
@@CodeBand Thank you so much! I will try.
@luizluz6633 жыл бұрын
Thank you very much !!!
@CodeBand3 жыл бұрын
You are welcome!
@gummadinishna90674 жыл бұрын
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...
@CodeBand4 жыл бұрын
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... :)
@gummadinishna90674 жыл бұрын
Yeah, I got that. Thank You But when I log in, it shows - Programming Error column does not exist.
@gummadinishna90674 жыл бұрын
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.
@CodeBand4 жыл бұрын
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
@panchamjain69873 жыл бұрын
Server Error (500) when Debug = False please help!!
@CodeBand3 жыл бұрын
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
@akagragupta88953 жыл бұрын
broo litt thank you so much
@CodeBand3 жыл бұрын
Happy to help❤️
@rajsrikantha79143 жыл бұрын
Hi Is it before hosting the web on heroku I have to deactivate virtual env? Thanks
@CodeBand3 жыл бұрын
It's not mandatory to deactivate venv.
@rajsrikantha79143 жыл бұрын
. Hi I have H14 Error when hosting in Heroku. Any help please to solve the problem. Thanks
@CodeBand3 жыл бұрын
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
@poonambisht13944 жыл бұрын
its helpful, thanks
@CodeBand4 жыл бұрын
Glad it helped😊
@kiranv64954 жыл бұрын
Thanks Code Band.
@CodeBand4 жыл бұрын
Welcome and keep supporting :)
@krithikaramesh47934 жыл бұрын
By typing the command "heroku open" I'm getting web page name as application error
@CodeBand4 жыл бұрын
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...
@rameshvadapalliramesh55064 жыл бұрын
@@CodeBand (myapp) E:\django_projects\app> heroku logs --tail --app todo » Error: You do not have access to the app todo. » » Error ID: forbidden
@peterdavids313 жыл бұрын
@@rameshvadapalliramesh5506 Possibly because you forgot to login to Heroku.
@FaizanAnsari-yw8bn3 жыл бұрын
For deploying on heroku , gibhub account is needed or not?
@CodeBand3 жыл бұрын
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👍🏻
@Rahilkzi20034 жыл бұрын
Everything is great 😊 But the images not showing in website Who I uploaded from admin dashboard???
@Rahilkzi20034 жыл бұрын
Can you tell me what to do?
@Rahilkzi20034 жыл бұрын
In solution
@CodeBand4 жыл бұрын
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
@Rahilkzi20034 жыл бұрын
Thanks 😊
@robinvarghese90534 жыл бұрын
while making a copy of the project how the env folder is created??
@robinvarghese90534 жыл бұрын
i got it
@CodeBand4 жыл бұрын
Sorry for being late, anyway, cool..keep going👍🏻
@prajwalpoojari35452 жыл бұрын
Its showing application error, please help me out
@CodeBand2 жыл бұрын
Some issue with Procfile, please check for any typo...
@tintin-mc7yj2 жыл бұрын
works with mysql as database?
@CodeBand2 жыл бұрын
For mysql, you can use a Heroku addon called cleardb mysql
@vamsi-tq5rv4 жыл бұрын
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.
@CodeBand4 жыл бұрын
Getting stuck in "-"? Most probably it will be some network issue...try again...
@vamsi-tq5rv4 жыл бұрын
@@CodeBand i tried many times but still blinking sir can you solve it
@CodeBand4 жыл бұрын
@@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-tq5rv4 жыл бұрын
@@CodeBand ok sir can you give screen share to me to solve the error sir
@CodeBand4 жыл бұрын
@@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👍🏻
@shahbajkhan5552 жыл бұрын
My error app crashed why it shows like this
@CodeBand2 жыл бұрын
Sorry for the late reply... Did you managed to fix the issue.. ?
@santhiya56063 жыл бұрын
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
@CodeBand3 жыл бұрын
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_x69583 жыл бұрын
Thank you so much brow. how many little projects I can upload to this site ?
@CodeBand3 жыл бұрын
Heroku gives you access to upload unlimited projects, as of my view, but the total hours in a month is limited to 1000.
@rab_x69583 жыл бұрын
@@CodeBand thanks for the information.
@nagendra98532 жыл бұрын
Heroku any Asking charges for deploying
@CodeBand2 жыл бұрын
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
@biswajitpaloi21212 жыл бұрын
How can I open admin page after host
@CodeBand2 жыл бұрын
Sorry for the late reply... You can go to /admin/ to access admin panel.
@shabeeeb640011 ай бұрын
bro do you have deploy django in aws
@cagdaskarabay30253 жыл бұрын
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 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
@CodeBand3 жыл бұрын
@@cagdaskarabay3025 👍🏻
@rheumaticharm95513 жыл бұрын
So to upload with heroku we need to use postgre?
@rheumaticharm95513 жыл бұрын
Pls bro answer? Or if you tell me the detail of settings.py where database configuration
@CodeBand3 жыл бұрын
@@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...
@rheumaticharm95513 жыл бұрын
@@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?
@CodeBand3 жыл бұрын
@@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
@rheumaticharm95513 жыл бұрын
@@CodeBand thanks for the reply keep up the good work👍
@pritammaity49784 жыл бұрын
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'
@CodeBand4 жыл бұрын
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.. :)