Deploying Flask Apps Using Python Anywhere

  Рет қаралды 82,108

Pretty Printed

Pretty Printed

4 жыл бұрын

Want to deploy your Flask app on the web? Try using Python Anywhere. I demonstrate its use in this video.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
help.pythonanywhere.com/pages...
www.pythonanywhere.com/
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
Twitter: / pretty_printed
Github: github.com/prettyprinted

Пікірлер: 124
@tpz1474
@tpz1474 4 жыл бұрын
Anthony, you've made it so easy! Thank you very much for this tutorial.
@farhanhaikhan7307
@farhanhaikhan7307 3 жыл бұрын
Thanks for the excellent tutorial. Could get the app running sometime later because im a Flask Noob. Great Work altogether!
@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?
@khalifashuaib1168
@khalifashuaib1168 3 жыл бұрын
Thank you so much!!!!! I tried deploying my app using heroku but it wasn't behaving like it would on my localhost. Great tutorial!
@jefboy28
@jefboy28 3 жыл бұрын
you are the god of tutorials, thanks so much Anthony!
@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 10 ай бұрын
Hey how did you get the KZbin certification without any subscribers ? Thanks
@pratik037
@pratik037 4 жыл бұрын
Thank you so much for this. Helped a lot for a begineer like me!
@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?
@mauricioblaster
@mauricioblaster 4 жыл бұрын
what's the advantage of your method comparing to the standard configuration, i.e., selecting Flask in the pythonanywhere menu?
@luasluckas
@luasluckas Жыл бұрын
Thanks man! The app factory part was very helpful
@TheVSI
@TheVSI 3 ай бұрын
thank you so much, ive deployed my intrusion detection flask app
@rushas
@rushas 3 жыл бұрын
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
@piotrlazecki3948
@piotrlazecki3948 4 жыл бұрын
Hi Anthony, huge thanks ! It's perfect job. Could you also make a video about python anywhere with nginx and uwsgi ?
@user-rs6pi8wy1z
@user-rs6pi8wy1z 3 жыл бұрын
Thanks, that was exactly what I was looking for!
@howards5205
@howards5205 3 жыл бұрын
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
@adh9354
@adh9354 3 жыл бұрын
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 ?
@jayhu6075
@jayhu6075 4 жыл бұрын
Great explanation. For my is this a useful information. Keep going. Stay healthy dear in the U.S.
@prettyprinted
@prettyprinted 4 жыл бұрын
Thanks for watching! You stay safe as well.
@jonathansum9084
@jonathansum9084 3 жыл бұрын
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
@daksheshsharma1747
@daksheshsharma1747 3 жыл бұрын
How can we modify the files after we have deployed our project ?
@sentientplatypus8740
@sentientplatypus8740 2 жыл бұрын
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'
@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?
@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 ?
@merthaddad1512
@merthaddad1512 3 жыл бұрын
I'm having a problem with the db, I used sqlite3 on my vscode any ideas?
@krishnanandroy7185
@krishnanandroy7185 4 жыл бұрын
How can I update my flask app though github.plzz help me
@technoodle3181
@technoodle3181 3 жыл бұрын
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
@mehmet_altan
@mehmet_altan 3 жыл бұрын
Thank you, I tried and its worked.
@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
@namankhurpia3054
@namankhurpia3054 3 жыл бұрын
Thanks buddy you saved me very easy tutorial
@fernandocanepari3795
@fernandocanepari3795 2 жыл бұрын
Thanks! Works like a charm!
@artem_teliuk
@artem_teliuk 3 жыл бұрын
Hey! Thank you for the video, you helped me a lot! )
@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
@kashisethia8111
@kashisethia8111 3 жыл бұрын
Amazing tutorial sir, Sir please also post a tutorial for deploying a flask restful API (get) on python anywhere . Thanks
@user-vw9gu8hw3g
@user-vw9gu8hw3g 2 жыл бұрын
Thanks for this video. It is useful for me!
@footballforfun2054
@footballforfun2054 3 жыл бұрын
what is in .env and .flaskenv file?
@GraysonStream
@GraysonStream 2 жыл бұрын
Thank you so much for this video!
@wchriscowles
@wchriscowles 3 жыл бұрын
Thanks for the help!
@dubey_ji
@dubey_ji Жыл бұрын
thank you so much for this
@TheHaterNumberOne
@TheHaterNumberOne 3 жыл бұрын
simply the best. thanks a lot
@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 жыл бұрын
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
@agungkurniawan7044
@agungkurniawan7044 2 жыл бұрын
great video, thanks
@realtalkjames2408
@realtalkjames2408 4 жыл бұрын
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
@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.
@arsensaifutdinov4485
@arsensaifutdinov4485 4 жыл бұрын
add this app.config["SECRET_KEY"] = "random_string"
@Ayoutubeaccount3
@Ayoutubeaccount3 Жыл бұрын
Thanks! only tutorial I could make work
@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.
@juandavidosornojaramillo3680
@juandavidosornojaramillo3680 3 жыл бұрын
good video, thaks, great job
@looploop6612
@looploop6612 4 жыл бұрын
can you show how to set up pythonanywhere mysql as well?
@prettyprinted
@prettyprinted 4 жыл бұрын
I definitely will!
@MiniAishwarya
@MiniAishwarya 4 жыл бұрын
Can we deploy a flask without a virtual environment?
@codesniffer588
@codesniffer588 4 жыл бұрын
yes, virtual environments just isolate your app.
@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.
@jdhshs12
@jdhshs12 4 жыл бұрын
Thanks Anthony!!
@prettyprinted
@prettyprinted 4 жыл бұрын
You're welcome! Thanks for watching.
@mohamedrabea9607
@mohamedrabea9607 Жыл бұрын
great tutorial
@realtalkjames2408
@realtalkjames2408 4 жыл бұрын
Man, somebody somewhere needs to make setting up python apps easier on the web. A ton of money in that.
@someoneokay5530
@someoneokay5530 3 жыл бұрын
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 3 жыл бұрын
@@someoneokay5530 Not sure man, the owner of this channel has coaching though.
@naheliegend5222
@naheliegend5222 3 жыл бұрын
yes, I don't understand one thing
@mr_jacklu8014
@mr_jacklu8014 4 жыл бұрын
You are the best!
@Tiago-vo1ff
@Tiago-vo1ff 4 жыл бұрын
Thank you !
@alinecatikoc558
@alinecatikoc558 Жыл бұрын
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.
@malupets7502
@malupets7502 Жыл бұрын
same problem
@irgendwiemichi4159
@irgendwiemichi4159 7 ай бұрын
same
@b4nanajuice148
@b4nanajuice148 4 жыл бұрын
I have a problem, it can't found the git repository :V
@arorajivlogs1641
@arorajivlogs1641 4 жыл бұрын
private repo?
@bhrawii
@bhrawii 3 жыл бұрын
Thanks, man.
@Smoonwalkerm
@Smoonwalkerm 3 жыл бұрын
Please add a video of deploy fastapi into python anywhere!!
@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.
@ppolo12
@ppolo12 2 жыл бұрын
works Tyvm
@joostvankruijsdijk98
@joostvankruijsdijk98 Жыл бұрын
Thanks!
@michelangelo2917
@michelangelo2917 2 жыл бұрын
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
@saltal3915
@saltal3915 Жыл бұрын
thx man ❤
@MrMKA2012
@MrMKA2012 Жыл бұрын
Thank you
@gamingwithishack
@gamingwithishack 4 жыл бұрын
Thanks Anthony
@prettyprinted
@prettyprinted 4 жыл бұрын
You're welcome! Thanks for watching.
@CaptionThisChallenge_
@CaptionThisChallenge_ Жыл бұрын
Thanks bro
@rdubitsk
@rdubitsk 4 жыл бұрын
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 жыл бұрын
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.
@rverm1000
@rverm1000 2 жыл бұрын
need videos leading up to deploying your app
@akshitagarg5914
@akshitagarg5914 4 жыл бұрын
Can u bring a tutorial like E-learning website
@prettyprinted
@prettyprinted 4 жыл бұрын
I'll consider that idea.
@GhostAcademy
@GhostAcademy 3 жыл бұрын
git nit not working
@Troglodyte2021
@Troglodyte2021 3 жыл бұрын
Salute!!!
@almasalzhanov5928
@almasalzhanov5928 3 жыл бұрын
thanks a lot
@kenhazlett2636
@kenhazlett2636 2 жыл бұрын
I am being met with some errors. Could we do a zoom meet?
@kenhazlett2636
@kenhazlett2636 Жыл бұрын
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 KZbinr.
@furkanbilgin8634
@furkanbilgin8634 3 жыл бұрын
thx
@isabeltormos5664
@isabeltormos5664 4 жыл бұрын
I can't setup the WSL terminal in Pycharm. Any help please?
@PrivacyDefend
@PrivacyDefend 4 жыл бұрын
Nice
@bryandimas4280
@bryandimas4280 4 жыл бұрын
Awesome
@prettyprinted
@prettyprinted 4 жыл бұрын
Thanks for watching!
@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 "
@nevergotfat
@nevergotfat 3 жыл бұрын
people who dislike even after everything is right need to atleast justify their actions.
@roostertechchan
@roostertechchan 4 жыл бұрын
Far too much config. Would’t it be better if you start on that hosting from scratch?
@prettyprinted
@prettyprinted 4 жыл бұрын
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.
@plusk343
@plusk343 3 жыл бұрын
pretty printed s better than whitehat jr :]
@GhostAcademy
@GhostAcademy 3 жыл бұрын
i dont understand anything you say
@MrSeinfeldFan2
@MrSeinfeldFan2 3 жыл бұрын
not easy....
@louisstroudh7415
@louisstroudh7415 3 жыл бұрын
Vid didn't advertise a whole list of required dependencies. Timewaster
@lappyacc5046
@lappyacc5046 Жыл бұрын
5:22 git clone
@naheliegend5222
@naheliegend5222 3 жыл бұрын
dude you lost me after 2 minutes. so hard to follow and I does not understand a single adjustment
@kaplansedat
@kaplansedat 3 жыл бұрын
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.
@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?
Hosting a Python Flask project on PythonAnywhere's free server
9:49
Paul Baumgarten
Рет қаралды 19 М.
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 22 МЛН
Connect PythonAnywhere with GitHub
11:00
Kev in Tech
Рет қаралды 20 М.
Best Platforms to Host Python Apps (for free!!)
9:50
Patrick Loeber
Рет қаралды 112 М.
How to Deploy a Flask App and Postgres Database to Render
16:39
Pretty Printed
Рет қаралды 44 М.
Deploy a Django web app to Python Anywhere [FREE]
19:04
Cloud With Django
Рет қаралды 123 М.
Push Flask Apps To Heroku For Webhosting - Python and Flask #11
10:54
Deploy Python Flask App on Pythonanywhere.com
12:06
Aditya Pai Thon
Рет қаралды 82 М.
Deploy Python app to PythonAnywhere
15:25
Kev in Tech
Рет қаралды 29 М.
How to Deploy a Flask App to a Linux Server
22:12
Tech With Tim
Рет қаралды 165 М.
How to Deploy a Flask App Using PythonAnywhere
5:21
Code And Course
Рет қаралды 12 М.
Simple Web App with Flask and Heroku - Python GUI for Beginners
25:07
Python Simplified
Рет қаралды 218 М.
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН