Deploying Flask Apps Using Python Anywhere

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2025

ความคิดเห็น • 124

  • @joostvankruijsdijk98
    @joostvankruijsdijk98 2 ปีที่แล้ว

    Thanks!

  • @jefboy28
    @jefboy28 4 ปีที่แล้ว +1

    you are the god of tutorials, thanks so much Anthony!

  • @tpz1474
    @tpz1474 4 ปีที่แล้ว +4

    Anthony, you've made it so easy! Thank you very much for this tutorial.

  • @jayhu6075
    @jayhu6075 4 ปีที่แล้ว +6

    Great explanation. For my is this a useful information. Keep going. Stay healthy dear in the U.S.

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว +1

      Thanks for watching! You stay safe as well.

  • @novaria
    @novaria 3 ปีที่แล้ว

    Awesome. Working for a client of mine who's hosting on PythonAnywhere. This helps getting started with a time-efficient way of re-deploying when adding changes. Thanks!

    • @AdventuresWithQuinn
      @AdventuresWithQuinn 2 ปีที่แล้ว

      I can't seen to get my app to update when I update the files - how did you do it?

  • @howards5205
    @howards5205 4 ปีที่แล้ว +18

    Hi Anthony. Thanks for a great video. Just curious: Is there a reason why you chose manual configuration over Flask configuration? Are there any benefits?

  • @victordvickie
    @victordvickie 4 ปีที่แล้ว

    You are messiah lol followed and deployed my blockchain crypto app with MySQL u were one such of good yt i love now

  • @TheVSI
    @TheVSI 9 หลายเดือนก่อน

    thank you so much, ive deployed my intrusion detection flask app

  • @luasluckas
    @luasluckas 2 ปีที่แล้ว

    Thanks man! The app factory part was very helpful

  • @間澤変態
    @間澤変態 4 ปีที่แล้ว +1

    Thanks, that was exactly what I was looking for!

  • @farhanhaikhan7307
    @farhanhaikhan7307 4 ปีที่แล้ว

    Thanks for the excellent tutorial. Could get the app running sometime later because im a Flask Noob. Great Work altogether!

  • @mehmet_altan
    @mehmet_altan 3 ปีที่แล้ว

    Thank you, I tried and its worked.

  • @fernandocanepari3795
    @fernandocanepari3795 3 ปีที่แล้ว

    Thanks! Works like a charm!

  • @pratik037
    @pratik037 4 ปีที่แล้ว

    Thank you so much for this. Helped a lot for a begineer like me!

  • @namankhurpia3054
    @namankhurpia3054 3 ปีที่แล้ว

    Thanks buddy you saved me
    very easy tutorial

  • @ВикторияЛегчикова
    @ВикторияЛегчикова 3 ปีที่แล้ว

    Thanks for this video. It is useful for me!

  • @khalifashuaib1168
    @khalifashuaib1168 4 ปีที่แล้ว

    Thank you so much!!!!! I tried deploying my app using heroku but it wasn't behaving like it would on my localhost. Great tutorial!

  • @GraysonStream
    @GraysonStream 2 ปีที่แล้ว

    Thank you so much for this video!

  • @realtalkjames2408
    @realtalkjames2408 4 ปีที่แล้ว +15

    Man, somebody somewhere needs to make setting up python apps easier on the web. A ton of money in that.

    • @someoneokay5530
      @someoneokay5530 4 ปีที่แล้ว

      Hey I have made a flask-socketio chat app which allows multiple room chat, it also has a database that stores the messages in a given room. I deployed it on pythonanywhere and the issue is that for a second user who accesses the site the site takes for ever to load , I.e. the response times are too big. How do I resolve this

    • @realtalkjames2408
      @realtalkjames2408 4 ปีที่แล้ว

      @@someoneokay5530 Not sure man, the owner of this channel has coaching though.

    • @naheliegend5222
      @naheliegend5222 4 ปีที่แล้ว

      yes, I don't understand one thing

  • @jimratliff
    @jimratliff 2 ปีที่แล้ว

    This was great! And I don't know what I would had to have done if you hadn't highlighted the difference when using the app-factory structure. That's precisely my situation, and knowing how to handle that was a huge benefit.

    • @mrpringtwo4213
      @mrpringtwo4213 ปีที่แล้ว

      Hey how did you get the TH-cam certification without any subscribers ? Thanks

  • @realtalkjames2408
    @realtalkjames2408 4 ปีที่แล้ว +1

    10:21 I'm stuck , I get the error:
    2020-04-22 03:12:01,197: Error running WSGI application
    2020-04-22 03:12:01,202: ModuleNotFoundError: No module named 'dotenv'

    • @bolivianprince7326
      @bolivianprince7326 4 ปีที่แล้ว

      i believe thats a package you need to install and is called python-dotenv

  • @mauricioblaster
    @mauricioblaster 4 ปีที่แล้ว +2

    what's the advantage of your method comparing to the standard configuration, i.e., selecting Flask in the pythonanywhere menu?

  • @TheHaterNumberOne
    @TheHaterNumberOne 3 ปีที่แล้ว

    simply the best. thanks a lot

  • @wchriscowles
    @wchriscowles 4 ปีที่แล้ว

    Thanks for the help!

  • @dubey_ji
    @dubey_ji ปีที่แล้ว

    thank you so much for this

  • @rushas
    @rushas 4 ปีที่แล้ว

    Good video. I particularly liked the app factory usage.
    Please, would you consider to do a Flask Frozen tutorial? There isn't any video on YT for SSG for Flask. Thanks

  • @artem_teliuk
    @artem_teliuk 4 ปีที่แล้ว

    Hey! Thank you for the video, you helped me a lot! )

  • @agungkurniawan7044
    @agungkurniawan7044 2 ปีที่แล้ว

    great video, thanks

  • @daksheshsharma1747
    @daksheshsharma1747 4 ปีที่แล้ว +1

    How can we modify the files after we have deployed our project ?

  • @jdhshs12
    @jdhshs12 4 ปีที่แล้ว

    Thanks Anthony!!

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @piotrlazecki3948
    @piotrlazecki3948 4 ปีที่แล้ว +1

    Hi Anthony,
    huge thanks ! It's perfect job. Could you also make a video about python anywhere with nginx and uwsgi ?

  • @michelangelo2917
    @michelangelo2917 2 ปีที่แล้ว +1

    Great video. I'm trying to clone my repository but when I try to insert password, it won't let me type anything. How could I solve?

    • @giuliofacciolo246
      @giuliofacciolo246 ปีที่แล้ว

      same problem

    • @michelangelo2917
      @michelangelo2917 ปีที่แล้ว

      @@giuliofacciolo246 hai risolto? credo tu sia italiano 😂

    • @giuliofacciolo246
      @giuliofacciolo246 ปีที่แล้ว

      @@michelangelo2917 si esatto ahah. Ho scoperto che è normale, scrivi lo stesso la password

  • @looploop6612
    @looploop6612 4 ปีที่แล้ว +1

    can you show how to set up pythonanywhere mysql as well?

  • @Ayoutubeaccount3
    @Ayoutubeaccount3 ปีที่แล้ว

    Thanks! only tutorial I could make work

  • @jonathansum9084
    @jonathansum9084 4 ปีที่แล้ว +1

    Can I do an upload image file and do a flask code to do image classifier stuff with this free account? I mean...can I do it dynamically rather than static deploy like the one in Github

  • @mohamedrabea9607
    @mohamedrabea9607 2 ปีที่แล้ว

    great tutorial

  • @juandavidosornojaramillo3680
    @juandavidosornojaramillo3680 4 ปีที่แล้ว

    good video, thaks, great job

  • @saltal3915
    @saltal3915 ปีที่แล้ว

    thx man ❤

  • @sentientplatypus8740
    @sentientplatypus8740 3 ปีที่แล้ว

    Hello, Thanks for the tutorial. I really appreciate it. however, I keep getting this error:
    Error running WSGI application
    TypeError: __call__() missing 1 required positional argument: 'send'

  • @adh9354
    @adh9354 4 ปีที่แล้ว

    If my env is already white and i have an automatically installed .gitignore file in the virtual env's folder do i have to create it again outside of that folder or move to the next step ?

  • @MrMKA2012
    @MrMKA2012 ปีที่แล้ว

    Thank you

  • @Tiago-vo1ff
    @Tiago-vo1ff 4 ปีที่แล้ว

    Thank you !

  • @bhrawii
    @bhrawii 3 ปีที่แล้ว

    Thanks, man.

  • @verygood5377
    @verygood5377 4 ปีที่แล้ว

    This is excellent video. Thank you so much again Anthony !! You're always clear about the steps. I tested it with your other authentication/authorization app successfully. One difference is that I didn't even have to make any edits of the env variables. Can anyone test it and tell if you have the same experience?

  • @gamingwithishack
    @gamingwithishack 4 ปีที่แล้ว

    Thanks Anthony

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @ppolo12
    @ppolo12 3 ปีที่แล้ว

    works Tyvm

  • @RohitSaini-go3cr
    @RohitSaini-go3cr 4 ปีที่แล้ว

    Sir I am getting an error --- with open()
    Where should i play my file that is to be open in my program

  • @waleedmashrequi5173
    @waleedmashrequi5173 4 ปีที่แล้ว

    Is everything same if i am using pipenv instead of venv?

  • @ChupoCro
    @ChupoCro 3 ปีที่แล้ว

    What about the packages installed by the linter? These packages will be listed in *requirements.txt* when using *freeze* and will then be installed on the server which is not what should be done. For example, these are all the packages installed when using *pylint* linter and they all should be removed from the requirements:
    astroid
    backports.functools-lru-cache
    colorama
    configparser
    enum34
    futures
    isort
    lazy-object-proxy
    mccabe
    pylint
    singledispatch
    six
    wrapt

  • @EricSouzarys
    @EricSouzarys 4 ปีที่แล้ว

    Hey Anthony, many thanks for all your videos, helps me a lot.
    Could you also make a video about using the db from Flask-SQLAlchemy outside de flask context? I'm trying to have a worker which is a scheduler using apscheduler library for monitoring my database and send emails using some rules, but when I tries to run a query it trows error RuntimeError: No application found. Either work inside a view function or push an application context.

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว +1

      Hey, that's a good idea for a topic. I'll see what I can do.

    • @EricSouzarys
      @EricSouzarys 4 ปีที่แล้ว

      @@prettyprinted So many thanks!! I also had this problem trying to use redis with rq :( .I believe it's gonna be a very helpful video

  • @kashisethia8111
    @kashisethia8111 4 ปีที่แล้ว

    Amazing tutorial sir, Sir please also post a tutorial for deploying a flask restful API (get) on python anywhere . Thanks

  • @footballforfun2054
    @footballforfun2054 3 ปีที่แล้ว

    what is in .env and .flaskenv file?

  • @mr_jacklu8014
    @mr_jacklu8014 4 ปีที่แล้ว

    You are the best!

  • @merthaddad1512
    @merthaddad1512 3 ปีที่แล้ว

    I'm having a problem with the db, I used sqlite3 on my vscode
    any ideas?

  • @alinecatikoc558
    @alinecatikoc558 2 ปีที่แล้ว

    Hi Anthony. What if we don't have application factory just as you develope? I mean I only have single app.py file and whole source code inside that app.py file. How can I properly fix my wsgi.py file at pythonanywhere? I am stuck need help. Thank you.

  • @technoodle07
    @technoodle07 4 ปีที่แล้ว

    hey for some reason my bash console uses python 2.7 meaning none of my requirements are able to install to the proper versions. Is there any way to fix this?
    edit: nvm, I had to use pip3 install

  • @ShehneelKhan-p3x
    @ShehneelKhan-p3x 2 ปีที่แล้ว

    Thanks bro

  • @kenhazlett2636
    @kenhazlett2636 2 ปีที่แล้ว

    I am being met with some errors. Could we do a zoom meet?

    • @kenhazlett2636
      @kenhazlett2636 2 ปีที่แล้ว

      It never hurts to ask. You will never get further in life if you don’t ask questions, even if you think someone is better than you or in your case, a big TH-camr.

  • @krishnanandroy7185
    @krishnanandroy7185 4 ปีที่แล้ว

    How can I update my flask app though github.plzz help me

  • @binarysouljour
    @binarysouljour 4 ปีที่แล้ว

    anthony.. can you show tutorials on kivy?... and creating hybrid mobile apps with ionic and flask for backend?... waiting for ur reply

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      I haven't looked at Kivy but I'll put it on my todo list.

  • @almasalzhanov5928
    @almasalzhanov5928 3 ปีที่แล้ว

    thanks a lot

  • @UnknownUnknown-th9kf
    @UnknownUnknown-th9kf 3 ปีที่แล้ว

    Hey, I just wanted to ask, I am having trouble deploying my deep learning REST API on heroku as it limits the slug size to 500mb, mine exceeds 700mb due to tensorflow and model weight size. Can I deploy the deep learning api here without any size limit ?

  • @rdubitsk
    @rdubitsk 4 ปีที่แล้ว +1

    Great job. Would you say python based apps are harder to deploy than others? I use flask because I have a lot of python code but wondering if that makes it harder to deploy.

    • @xswooshx
      @xswooshx 4 ปีที่แล้ว +1

      Hi. I'm not OP, but I would say that it depends on the platform. With Heroku, there's a Python package that helps the process out, for example.
      PA looks a little more involved, but not by much. And that bit of extra set up time is reflected in PA's lower cost bracket vs other host platforms.

  • @DucaTech
    @DucaTech 4 ปีที่แล้ว

    What's the advantage of this over something like Heroku or Digital Ocean?

    • @vatsalaykhobragade
      @vatsalaykhobragade 4 ปีที่แล้ว

      Python anywhere gives GUI way of deploying web apps while in heroku you need to have knowledge of how to use git and terminal.

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      I think it's much easier to use. You can definitely outgrow it, but it works well for a lot of small projects.

  • @MiniAishwarya
    @MiniAishwarya 4 ปีที่แล้ว

    Can we deploy a flask without a virtual environment?

    • @codesniffer588
      @codesniffer588 4 ปีที่แล้ว

      yes, virtual environments just isolate your app.

  • @akshitagarg5914
    @akshitagarg5914 4 ปีที่แล้ว

    Can u bring a tutorial like E-learning website

  • @saipriyakaminwar1189
    @saipriyakaminwar1189 4 ปีที่แล้ว

    what should i do to sort this error?
    RuntimeError: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.

  • @Smoonwalkerm
    @Smoonwalkerm 3 ปีที่แล้ว

    Please add a video of deploy fastapi into python anywhere!!

  • @rverm1000
    @rverm1000 2 ปีที่แล้ว

    need videos leading up to deploying your app

  • @helmialfathseptiana6383
    @helmialfathseptiana6383 4 ปีที่แล้ว

    hay Anthony, Great video!
    anyway, I have some problem with flask, wtform n MySQL.
    in Update route, the querry is Ok but it returned different value, do you have some video or clue about that?

    • @victordvickie
      @victordvickie 4 ปีที่แล้ว

      Be more specific

    • @waleedmashrequi5173
      @waleedmashrequi5173 4 ปีที่แล้ว

      Check the function u used to update cause if query is ok then the function must have some mistake.

  • @b4nanajuice148
    @b4nanajuice148 4 ปีที่แล้ว

    I have a problem, it can't found the git repository :V

  • @GhostAcademy
    @GhostAcademy 3 ปีที่แล้ว

    git nit not working

  • @moody54324
    @moody54324 4 ปีที่แล้ว

    Guys please i need a help now i want to change the id autoincreament in django because i want to have a lot of users and posts so to have id consists of more than one character such as 143752, and same time i wanna that to be primary key and how it can be created automatically and like in real world production

  • @Troglodyte2021
    @Troglodyte2021 3 ปีที่แล้ว

    Salute!!!

  • @nevergotfat
    @nevergotfat 3 ปีที่แล้ว

    people who dislike even after everything is right need to atleast justify their actions.

  • @furkanbilgin8634
    @furkanbilgin8634 3 ปีที่แล้ว

    thx

  • @bryandimas4280
    @bryandimas4280 4 ปีที่แล้ว

    Awesome

  • @looploop6612
    @looploop6612 4 ปีที่แล้ว

    No module named 'dotenv'

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      Make sure you install it in your virtual environment.

    • @vatsalaykhobragade
      @vatsalaykhobragade 4 ปีที่แล้ว

      Use " pip install python-dotenv "

  • @pestcontrolusa1
    @pestcontrolusa1 4 ปีที่แล้ว

    Nice

  • @plusk343
    @plusk343 4 ปีที่แล้ว +1

    pretty printed s better than whitehat jr :]

  • @isabeltormos5664
    @isabeltormos5664 4 ปีที่แล้ว

    I can't setup the WSL terminal in Pycharm. Any help please?

  • @GhostAcademy
    @GhostAcademy 3 ปีที่แล้ว

    i dont understand anything you say

  • @roostertechchan
    @roostertechchan 4 ปีที่แล้ว +1

    Far too much config. Would’t it be better if you start on that hosting from scratch?

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว +1

      Creating your own server will always require more setup and configuration. And you have to actively manage it afterwards. With Python Anywhere, you only need to spend 10 minutes in the beginning.

  • @MrSeinfeldFan2
    @MrSeinfeldFan2 3 ปีที่แล้ว

    not easy....

  • @louisstroudh7415
    @louisstroudh7415 4 ปีที่แล้ว

    Vid didn't advertise a whole list of required dependencies. Timewaster

  • @lappyacc5046
    @lappyacc5046 ปีที่แล้ว

    5:22 git clone

  • @naheliegend5222
    @naheliegend5222 4 ปีที่แล้ว

    dude you lost me after 2 minutes. so hard to follow and I does not understand a single adjustment

  • @Techn0v0r3
    @Techn0v0r3 3 ปีที่แล้ว

    Ok, great! So, what will you do with settings.py with tokens when you deploy on github? it's no safe, u know) You deploy all your files to github, man. Your video very useless for all people in the world. Because it's not unique. Did you make it to get people stuck?

  • @kaplansedat
    @kaplansedat 4 ปีที่แล้ว

    you make it clear. its not about you its about community and current state of python for web dev. And that video was make decide not make web dev on python. python is on a deserved hype. everybody talking about it. everybody starting coding with it. it should be much easier. industry going backward. php implementation is much more easier. much affordable to find php hosting.
    Web development make languages shine. look everyone was get fun of javascript till node.js. python will stay as a glue and pedagogic language I think.