Deploy a Django Web App on PythonAnywhere.

Sdílet
Vložit
  • čas přidán 30. 04. 2023
  • In this video, I 'll show you how to deploy a Django web application on PythonAnywhere, a cloud-based Python hosting platform. You'll learn how to set up a virtual environment, create a database, configure your settings, and deploy your application. By the end of this tutorial, you'll have a fully functional Django app live on the internet!
    Let's go. 🚀
    Push your Django Code to Github:
    • How to Push your Djang...

Komentáře • 140

  • @jpcodes373
    @jpcodes373 Před 9 měsíci +1

    Have watched different video tutorials on this, but only yours worked for me. Thanks man.
    You just gained a subscriber. ❤️

    • @CodeWithClinton
      @CodeWithClinton  Před 9 měsíci

      Glad it helped, thank you.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

    • @jpcodes373
      @jpcodes373 Před 7 měsíci

      @@legendsanimexy8217 what's your challenge ?

  • @abrscab1239
    @abrscab1239 Před 4 měsíci +2

    I highly recommend this video to anyone interested on Deploying Django project, Thank you Clinton.

  • @toitosimracing
    @toitosimracing Před měsícem

    That tutorial helped me so much, you got a new subscriber !!!

  • @divyanshukrishna6958
    @divyanshukrishna6958 Před 5 měsíci

    man,you will not understand the pain i am going through love you man
    thanks you making this video
    love you man
    love your content

  • @mathapelomphahlele5309
    @mathapelomphahlele5309 Před 9 měsíci

    Thank you Clinton, this was very easy to follow.

    • @CodeWithClinton
      @CodeWithClinton  Před 9 měsíci

      You're welcome.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      ​@@CodeWithClinton bro can you help me . I have been trying so much to host my djnsgo website but its not working .
      Whenever i am doing pip install -r requirments.txt after installing some its showing me an erorr in the end like
      It's actually very big i cant wirte that all even if i want . I am getting the error at the last when it's making wheel for something like building wheel for psycopg2 .
      Error : python setup.py bdist_wheel

  • @potrishead
    @potrishead Před 10 dny

    Exactly what I needed. Thanks so much!

  • @mattunwin4254
    @mattunwin4254 Před 9 měsíci

    Trying to deploy on AWS Elastic Beanstalk was a nightmare, this is a lot easier! Thanks for your help.

    • @CodeWithClinton
      @CodeWithClinton  Před 9 měsíci +1

      Glad it helped! You are welcome.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @xband0
    @xband0 Před rokem

    Thanks for this tutorial Clinton

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      Thank you.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @pranit_7D
    @pranit_7D Před 9 měsíci

    Thanks this worked perfectly!

    • @CodeWithClinton
      @CodeWithClinton  Před 8 měsíci

      You're welcome.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @kanweiedward5728
    @kanweiedward5728 Před rokem

    Great one bro, love your channel.

    • @CodeWithClinton
      @CodeWithClinton  Před rokem +1

      Thank you.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @Jook2rib
    @Jook2rib Před 9 měsíci

    this works. you explain things well thank you & subscribed

    • @CodeWithClinton
      @CodeWithClinton  Před 9 měsíci

      Thank you so much.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

    • @Jook2rib
      @Jook2rib Před 7 měsíci

      @@legendsanimexy8217 what part did you get up to?

  • @catailabaca2937
    @catailabaca2937 Před 2 měsíci

    Thank you!! it was the alowed hosts , you're the best!! i own you a beer

  • @luuvinhtuong
    @luuvinhtuong Před 7 měsíci

    thank you so much!! bro.

  • @lembryant9922
    @lembryant9922 Před 3 měsíci

    Great video!

  • @officialnchitah9865
    @officialnchitah9865 Před rokem

    Yep! Thanks

  • @denizerkan2838
    @denizerkan2838 Před 8 měsíci

    This is a very well explained walkthrough , thank you so much. Can you make a video about how staticfiles can be set as well please ?

    • @CodeWithClinton
      @CodeWithClinton  Před 8 měsíci

      Staticfiles was also set in the tutorial. Thanks for the compliment. 🙏

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

    • @ssebattaadam9903
      @ssebattaadam9903 Před měsícem

      @@legendsanimexy8217 did you solve the issue with static files

  • @fairozfardin753
    @fairozfardin753 Před 4 měsíci

    very helpful

  • @Zero9BS
    @Zero9BS Před 5 měsíci

    tanks bro!!

  • @JustPython
    @JustPython Před rokem

    nice video

  • @rodrigoriveras
    @rodrigoriveras Před 9 měsíci

    Great job Clinton. Could you please help me with this issue? thanks
    ImproperlyConfigured at /
    settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

    • @CodeWithClinton
      @CodeWithClinton  Před 9 měsíci +1

      Search online for a proper database configuration for your django project or you can simply check your previous django projects and copy the database configurations into your current django project.

  • @vinayakupadhyay7527
    @vinayakupadhyay7527 Před 10 měsíci

    Thanks a lot brother, but my static files (CSS and images) are not being accessed. What to do for that?

    • @Karma_9913
      @Karma_9913 Před 10 měsíci

      In the web tab in the static files section u have to add static files there like in terms of path

  • @Austin_08
    @Austin_08 Před rokem +1

    Thanks for the tutorial. Please, what if I am using the latest version of Python(3.11)?

    • @CodeWithClinton
      @CodeWithClinton  Před rokem +1

      You're welcome, your python version does not matter, just follow the steps I took in the tutorial.

    • @Austin_08
      @Austin_08 Před rokem

      @@CodeWithClinton Alright. Thanks. Mine is actually an API project.

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      @@Austin_08 you are welcome.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @ayushvanvary
    @ayushvanvary Před 2 měsíci

    can we update our website and data , do changes and can we use postgres db

  • @LiveWelLounge
    @LiveWelLounge Před 3 měsíci

    kindly collectstatics ko b explain kr dyn

  • @kedarshidhaye6950
    @kedarshidhaye6950 Před 10 měsíci +1

    I already have a virtual environment setup in my django project so should I make another one while hosting it on python anywhere ?

    • @CodeWithClinton
      @CodeWithClinton  Před 10 měsíci +1

      Yes, you have to create another virtual environment.

    • @Karma_9913
      @Karma_9913 Před 10 měsíci

      ​@@CodeWithClintonthanks bro my website works fine now

    • @CodeWithClinton
      @CodeWithClinton  Před 10 měsíci

      @@Karma_9913 you are welcome man.

  • @TheLoneMan-fk2iu
    @TheLoneMan-fk2iu Před měsícem

    give a toturial on how to get the requirement.txt and the rest

  • @Austin_08
    @Austin_08 Před rokem

    Hi Clinton, I have successfully deployed it. Thanks so much. But I still need clarification on something o. It's a project in progress. So will it automatically deploy any changes I push to my repo?

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      It won't automatically deploy you have to go down to the PythonAnywhere console and then pull your changes.
      In your PythonAnywhere console simply cd into your project directory and run "git pull".

    • @Austin_08
      @Austin_08 Před rokem

      @@CodeWithClinton Ok. And once I pull, it will deploy? thank you very much bro.

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      @@Austin_08 yes bro, you are welcome.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @yuvrajlolage4618
    @yuvrajlolage4618 Před 10 měsíci

    Please provide tutorial for MySQL database on localhost

  • @CHRISDANIELDAQUIOAG
    @CHRISDANIELDAQUIOAG Před 21 dnem

    how to install requirements.txt it doesn't install in my website said that its not inside of my directory, when I'm putting it in the directory it still doesn't install, help me please

    • @CodeWithClinton
      @CodeWithClinton  Před 20 dny

      Make sure the requirements file is in the root directory of your Django project.

  • @fitzgerardmouliom443
    @fitzgerardmouliom443 Před 10 měsíci

    hi, if i have not set a requirement.txt file, how should i do, should i run directly pip install django ?

  • @Austin_08
    @Austin_08 Před rokem +1

    Hi Clinton, I am facing errors when I try to clone the git repository on the pythonanywhere bash. Please, any help with that?

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      What's the error message?

    • @Austin_08
      @Austin_08 Před rokem

      It asks for the github username and password. But when I provide them, it will tell me that it no longer support that form of authentication. But when you cloned yours, it didn't request for any login details.

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      @@Austin_08 yeah, it was changed recently.

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      @@Austin_08 you have to create a token on GitHub to be able to pass through while using PythonAnywhere

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @FactsInsights5
    @FactsInsights5 Před 9 měsíci

    hi clinton i have followed you till the end and when I open my website at last my website it running but all the content changed and everything on my website showing wrong.

    • @CodeWithClinton
      @CodeWithClinton  Před 9 měsíci

      Showing wrong, what do you mean??

    • @FactsInsights5
      @FactsInsights5 Před 9 měsíci

      @@CodeWithClinton i mean the alignment of all content of my website is changed and not a single css part is working.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @BenjieBejo
    @BenjieBejo Před 19 dny

    Hello! Why 'Error during template rendering'?

    • @CodeWithClinton
      @CodeWithClinton  Před 19 dny +1

      This is my first time hearing about this error, so sorry about it.

  • @weslleypablo6287
    @weslleypablo6287 Před rokem

    staticfiles not found in my project :|

    • @CodeWithClinton
      @CodeWithClinton  Před rokem +1

      You have to configure staticfiles in your settings.py

  • @CHRISDANIELDAQUIOAG
    @CHRISDANIELDAQUIOAG Před 21 dnem

    also when I'm clicking the link it says that something went wrong

  • @stepankhachatryan1544
    @stepankhachatryan1544 Před 7 měsíci

    my github doesn't allow me to upload db.sqlite3 file because it is more than 25mb (31mb). please help. what i can do?

    • @CodeWithClinton
      @CodeWithClinton  Před 7 měsíci

      What I can think of, is using a live Postgres database.

    • @ARSALANRATHER404
      @ARSALANRATHER404 Před 6 měsíci

      I have mysql will i be able to use free plan

    • @CodeWithClinton
      @CodeWithClinton  Před 6 měsíci

      @@ARSALANRATHER404 I can't say, try it out.

    • @ARSALANRATHER404
      @ARSALANRATHER404 Před 6 měsíci

      @@CodeWithClinton can you help with heroku im facing sognup problem

  • @pathak.8448
    @pathak.8448 Před 3 měsíci

    hi image is not showing on the live server what should I do?

    • @CodeWithClinton
      @CodeWithClinton  Před 3 měsíci

      Host the images on a separate server like aws S3 bucket.

    • @pathak.8448
      @pathak.8448 Před 3 měsíci

      @@CodeWithClintondoes static files not work on python anywhere?

    • @pathak.8448
      @pathak.8448 Před 3 měsíci

      After hoisting images on other servers how will I integrate with it.

  • @Austin_08
    @Austin_08 Před rokem

    Hi Clinton, I am here again o. I can not access my database after deploying. It throws 500 server error.

    • @Austin_08
      @Austin_08 Před rokem

      I have resolved this issue. But my otp verification third-party service is not working on pythonanywhere

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      Have you tried a different hosting service?

    • @Austin_08
      @Austin_08 Před rokem

      @@CodeWithClinton Yes. I have used Heroku

  • @user-nu2zc6iu3o
    @user-nu2zc6iu3o Před 5 měsíci

    "mkvirtualenv venv" does not work.what to do?

  • @abd1428
    @abd1428 Před 5 měsíci

    this is good but my static files dose not run .

  • @yusufmayowa
    @yusufmayowa Před rokem

    Thanks for this Man.
    But, how can i use access the Paid Hosting...i don't want the . pythonanywhere in the address
    🙏

    • @CodeWithClinton
      @CodeWithClinton  Před rokem +1

      During the signup process you can choose between a free or paid account.

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @vinsshaji3607
    @vinsshaji3607 Před rokem

    my static files are not working after deployed, Please help

    • @CodeWithClinton
      @CodeWithClinton  Před rokem

      You need to configure your staticfiles in your settings.py file.

    • @wilfrd_ke
      @wilfrd_ke Před 11 měsíci

      hello, have you manage to solve with static file, I'm am stuck too, please help how you did it.

    • @CodeWithClinton
      @CodeWithClinton  Před 11 měsíci

      @@wilfrd_ke watch this to solve the static issue. czcams.com/video/CdtQSiC8ZNQ/video.html

    • @wilfrd_ke
      @wilfrd_ke Před 11 měsíci

      @@CodeWithClinton ok thanks let me watch it now

    • @CodeWithClinton
      @CodeWithClinton  Před 11 měsíci

      @@wilfrd_ke you are welcome.

  • @Dani3lll07
    @Dani3lll07 Před 8 měsíci

    How long does it last?

    • @CodeWithClinton
      @CodeWithClinton  Před 8 měsíci

      I don't understand.

    • @Dani3lll07
      @Dani3lll07 Před 8 měsíci

      Before the project will be taken down or is it free for life?

    • @CodeWithClinton
      @CodeWithClinton  Před 8 měsíci

      @@Dani3lll07 it free for life, you just have to refresh the server every 3 months.

  • @mohamedazizchibani6004
    @mohamedazizchibani6004 Před 9 měsíci

    nice video ! and how to update it ?

    • @CodeWithClinton
      @CodeWithClinton  Před 9 měsíci

      Thank you, I covered updating in this video czcams.com/video/CdtQSiC8ZNQ/video.htmlsi=6yGXwFWh_ujo44sJ

    • @legendsanimexy8217
      @legendsanimexy8217 Před 7 měsíci

      If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help

  • @magnusvalterkaljuste9491
    @magnusvalterkaljuste9491 Před 11 měsíci

    Throws me 500 server error =(

  • @user-mg8cn4qe4v
    @user-mg8cn4qe4v Před 7 měsíci

    my app contains a jupyternote book so I keep getting this error 2023-11-13 20:51:26,733: Error running WSGI application
    2023-11-13 20:51:26,761: FileNotFoundError: [Errno 2] No such file or directory: './savedModels/model.joblib' , any ideas ?