Deploy Django Website To PythonAnywhere

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 62

  • @gocepaunov1221
    @gocepaunov1221 2 года назад +3

    Thank you Benjamin! Awesome step by step tutorial. I literally spent 5 hours struggling with heroku and did nothing. This took me only 20 mins. Thanks again !

  • @ahmadsharifkhannoor
    @ahmadsharifkhannoor 3 года назад +3

    I have been looking for videos making on python anywhere and Django deploys on it. This is the right and easy video tutorial to host your Django app so far.
    Thank you so much.

  • @paloma_dev
    @paloma_dev 2 года назад +4

    The best tutorial, ever! Thanks!

  • @a.rahman1728
    @a.rahman1728 3 года назад +7

    You are amazing @Benjamin. Thanks a lot for very a clear and logical explanation. Just wow

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад +1

      Appreciate it!

    • @OmniVascular
      @OmniVascular Год назад

      Same. So glad I found this vid, explained simply/clearly what many other YTers couldn't do. Keep it up!

  • @shreyasingh542
    @shreyasingh542 3 года назад +2

    You are the best! The allowed host thing worked for me. I was about to give up on it. Thank you so much!

  • @tigreonice2339
    @tigreonice2339 2 года назад +1

    In settings py. Line 23 secret key and line 26 debug True. It says that it should not be displayed as true in production.
    Can I delete those 2 lines? Or already delete them before in the github?
    I mean theres a reason why its a Secret Key :p
    Please tell me if you know.
    Thanks

  • @utkarshsharma107
    @utkarshsharma107 2 года назад +2

    I cannot use admin after deployment please help

  • @bluecodes5881
    @bluecodes5881 3 года назад +3

    Great tutorial.
    One suggestion though: You shouldn't have DEBUG=True in production.

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      That's correct. I just went through the steps to deploy to PythonAnywhere in this video but you should definitely make sure your app is production ready!

    • @vinayr1775
      @vinayr1775 3 года назад +1

      @@BenjaminCarlson What should I do to make my app production ready?

  • @AKSH_DESAI
    @AKSH_DESAI 3 года назад +3

    I can't host my django file in Pythonanywhere. Please help me 🙏

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад +1

      What error are you getting?

    • @AKSH_DESAI
      @AKSH_DESAI 3 года назад +1

      @@BenjaminCarlson okay now I host my django website on pythonanywhere. Thank you 😊

  • @sivakumarchodavarapu7222
    @sivakumarchodavarapu7222 3 года назад +1

    There was an error loading your PythonAnywhere-hosted site. There may be a bug in your code.
    Error code: Unhandled Exception
    im getting this error while loading the page. please help me.

    • @saadksm
      @saadksm 3 года назад

      Same here...

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      This link works for me: benjamincarlson.pythonanywhere.com/

  • @surbhityagi2710
    @surbhityagi2710 3 года назад +1

    After running "./manage.py migrate" I am getting this error :- """"Your models in app(s): 'Portal' have changes that are not yet reflected in a migration, and so won't be applied.
    Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.""""
    Please help as soon as possible

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад +1

      You just have to run the makemigrations command first!

    • @surbhityagi2710
      @surbhityagi2710 3 года назад

      @@BenjaminCarlson I have done that but still I am getting same error, please help me I am not able to move forward because of this error

  • @recourse8759
    @recourse8759 3 года назад +1

    how to change branch from main to master in dashboard?

  • @rinkeshranpariya887
    @rinkeshranpariya887 3 года назад +1

    Very helpful video brother 🤙❤️
    Thanks for this video

  • @nileshdeore
    @nileshdeore 2 года назад

    Thank's bro your video help allot for me.

  • @fullstackweb_developer
    @fullstackweb_developer 5 месяцев назад

    thank bro 👍👍🙌🙌

  • @obapalacebenin9413
    @obapalacebenin9413 2 года назад

    static file doesn't load even after configuring it although you didn't cover that, feels like a wasted time watching this.

  • @minihohtis5906
    @minihohtis5906 2 года назад

    For anyone getting "Something went wrong :-(" error message on the web page. In my case the path inside wsgi file should not have '/mysite' at the end of the path variable. I removed it and then the website worked. I think this was due to finding 'settings.py' file.

  • @daveop8788
    @daveop8788 3 года назад +2

    Good Job brother👍🏻

  • @deki90to
    @deki90to 2 года назад

    GOLD VIDEO!

  • @될
    @될 Год назад

    It says Error: That port is already in use.

  • @reksmeyok1957
    @reksmeyok1957 3 года назад

    Thank you for your clearly guiding video. I have problem with virtualenv. I have two virtual env - one from the project and the other created in pythonanywhere bash console. It lead to conflicting python version and cause uploading the image entry on admin page error of PIL error message. And I saw you have virtual env of your project from GitHub repo too and also you created another in the pythonanywhere bash console too.

  • @ylrmali
    @ylrmali 2 года назад

    I don't have a env files, ıs that a problem ?

  • @Iambilalakbar
    @Iambilalakbar 3 года назад

    Like Your Video, it worked Thanks

  • @pineforest8316
    @pineforest8316 2 года назад

    This Usl didn't work at all, what is it that is

  • @muruganraja9
    @muruganraja9 3 года назад

    Nice explanation. It is possible to backup and restore the mysql database with free tier if possible how to do.

  • @janing06
    @janing06 Год назад

    How to use external database

  • @enes222
    @enes222 3 года назад

    I can't see my running migrations section like that 9:17
    Why please help

    • @enes222
      @enes222 3 года назад +1

      Ok I got it. I set up my database in settings.py like so:
      DATABASES = {
      'default': {
      'ENGINE': 'django.db.backends.mysql',
      'NAME': '$,
      'USER': '',
      'PASSWORD': '',
      'HOST': 'user.mysql.pythonanywhere-services.com',
      }
      }
      and after I deleted all of my migrations in app folder.
      and
      py manage.py makemigrations
      py manage.py migrate
      OK Done :S

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      Glad you were able to figure it out!

    • @enes222
      @enes222 3 года назад +1

      @@BenjaminCarlson Thanks you helped out me really much

  • @peacestar4427
    @peacestar4427 3 года назад

    How to change API endpoints while deploying to public when localhost is there in endpoints , eg : 120.x.x.x:8000/to-dos , how to change this when deploying ? Won't it affect the end point for get and post ? Pls help anyone ;

    • @haydencordeiro
      @haydencordeiro 3 года назад

      Don't put 127..../todos in urls.py
      Keep it relative for eg /todos

  • @AlexanderHernandez-gu7wy
    @AlexanderHernandez-gu7wy Год назад

    thanks

  • @AKSH_DESAI
    @AKSH_DESAI 3 года назад +1

    Can anyone please help me.

  • @liviumircea6905
    @liviumircea6905 3 года назад

    Good :)

  • @muhammadzafran4224
    @muhammadzafran4224 3 года назад +1

    You are missing so many things which is gonna make followers in trouble later.

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад +4

      This is a quick start that gets you up and running with PythonAnywhere. Could you elaborate on what I might be missing so others can benefit? Simply commenting that this is a bad tutorial without specifying what is incorrect is not very helpful.

  • @AKSH_DESAI
    @AKSH_DESAI 3 года назад +1

    Hello sir. Please help 🙏

  • @ramakantsoni8340
    @ramakantsoni8340 3 года назад

    bro my html part is not working ... arahul.pythonanywhere.com /it will be great if you can help

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      I went to the link and it looks like everything is loading correctly (no errors in console). What exactly is the part you are having a problem with?

    • @ramakantsoni8340
      @ramakantsoni8340 3 года назад

      @@BenjaminCarlson first of all thank you man ... The problem is that the project also contain three blogs which is not shown on this site but my local server is showing that part .. you can check it on my git hub repo link - github.com/Ramakant849/First-blog once again thanks for help ...

  • @truedarkness1337
    @truedarkness1337 3 года назад

    I got this Error code: Unhandled Exception :(

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      Could you provide the rest of the error and what step you were on?

    • @truedarkness1337
      @truedarkness1337 3 года назад +1

      @@BenjaminCarlson thanks for replying, it was a database ( sqlite3 ) error, i googled for a few hours and found a solution to it.

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      Glad you were able to fix it!

    • @saagar202
      @saagar202 3 года назад

      @@truedarkness1337 I am facing the same problem. how did you solve it? could you provide me with a link to the solution?

    • @cristianjaimes9459
      @cristianjaimes9459 2 года назад

      @@BenjaminCarlson hi, same problem here, googled it but I cannot solve it yet

  • @haruboss_
    @haruboss_ 3 года назад

    thanks