How to deploy a Python (Flask) web app on a (PythonAnywhere) live server

  Рет қаралды 112,503

PythonHow by Ardit Sulce

PythonHow by Ardit Sulce

Күн бұрын

Пікірлер: 143
@Boosy1125
@Boosy1125 5 жыл бұрын
Thank you for this tutorial! Was looking around the internet trying to find an easy explanation and couldn't find one until this one. Now my app is running thanks to you
@pythonhow
@pythonhow 5 жыл бұрын
Hi Aaron, I am really happy that my video helped you to make your app run. Keep on the good work, Ardit
@sakibullah3577
@sakibullah3577 4 жыл бұрын
@@pythonhow thanks for the video.but you didn't tell how I use database
@stardust.edit-it6535
@stardust.edit-it6535 3 ай бұрын
i freaking love u guy, yesterday around 12 noon i started to look on how to deploy my website, after a whole day of searching finally found a video that was in actual a blessing for me, going to show my school project tomorrow, bless me luck, and yes a big thank you sir.
@FeraidonAbdulRahimzai-q8c
@FeraidonAbdulRahimzai-q8c Жыл бұрын
Thank you so much!!! I've been trying to deploy my flask app for a project and it took me 2 days to reach you!! Super Helpful and easy to follow.
@cadavinci8555
@cadavinci8555 3 жыл бұрын
Man you are the best. faq in 3min i learned to deploy a flask hello world. man, thanks
@paulofreitasgomes6389
@paulofreitasgomes6389 Жыл бұрын
the source code files are not available anymore
@nostalgia18rishi
@nostalgia18rishi 2 жыл бұрын
My app needs a lot of python libraries to run. How do I get a python virtual environment with all the modules in the python anywhere website?
@Eseflow1
@Eseflow1 10 ай бұрын
Thank you so much for how you have clearly explained how to upload a website for free. You really a very good teacher. 🎉🎉🎉🎉🎉
@mstardomfinance8389
@mstardomfinance8389 4 жыл бұрын
You are amazing man. I built my python app and configured it to work with the Flask web frame work. I then followed your video tutorial of how to add a python app to pythonanywhere and it worked, Dude. My app worked. I thank you so much for helping me get my python app to the world. If any one cared to check it out, just send me a line, and I will text you the link.
@reold
@reold 4 жыл бұрын
I wanna see it
@KrishnaSagar02
@KrishnaSagar02 Жыл бұрын
Hi. We can only deploy one app using free subscription?
@migueltolentino7092
@migueltolentino7092 7 ай бұрын
this vid is simple and precise you're a life saver!
@mvmlfranc7359
@mvmlfranc7359 3 жыл бұрын
Thank you, I have my app working now because of your video!
@krishchopra22
@krishchopra22 2 жыл бұрын
Nice tutorial man! And yes you really have a great voice 🔥
@lindseycason5768
@lindseycason5768 2 жыл бұрын
Jesus Christ!! I've been looking for this simple explanation for two days! I was missing 1 little thing! Thank you so much, very very clear and concise!!! You're a lifesaver.
@nil4897
@nil4897 3 жыл бұрын
Thank you so much! Very clear instructions in a quick format!
@oliski-fe4jg
@oliski-fe4jg 3 жыл бұрын
You sir has deserved a subscribe button
@dennistcampos
@dennistcampos 3 жыл бұрын
My API needs to conect to a local database. Is there a way to use it to connect my database, or I must deploy the API in a local server (which will give me a lot of work)?
@jackoubridge8248
@jackoubridge8248 2 жыл бұрын
Great video! Straight to the point and very helpful
@akshayavhad2582
@akshayavhad2582 4 жыл бұрын
i have impoted sqlalchemy under my app so how did i mentioned it in my case
@adrianxpandelescu
@adrianxpandelescu Жыл бұрын
Hi, there is any way to upload more folders or files at once in pythonanywhere?
@pythonhow
@pythonhow Жыл бұрын
Yes, PythonAnywhere supports uploading multiple files and folders, but the process depends on your account type. Here's how you can do it: For Free Accounts, you can only upload files one by one using the web interface. To upload multiple files or folders, you would need to: 1- Compress Your Files/Folders: Zip your folders and files on your local machine into a single .zip file. 2- Upload the Zip File: Use the "Files" tab on PythonAnywhere to upload the .zip file. 3- Unzip on PythonAnywhere: After uploading, you can use the "Bash" console on PythonAnywhere to unzip the file: unzip path/to/yourfile.zip
@BenjaminOdede
@BenjaminOdede 3 ай бұрын
Much Thanks @pythonhow for this awesome Video. Just a question Can you add another project within the same workspace?
@ata8116
@ata8116 3 жыл бұрын
Links in the description aren't working 😬
@2013葉上寧
@2013葉上寧 11 ай бұрын
Hello, I think my website can't connect to the templates folder, since only the route without calling templates can work smooththly. What might happed?
@tanmay7414
@tanmay7414 Жыл бұрын
in the backend of my app I am using keras and pickle and when i do pickle.load() it says no module keras.src I havent faced this erroor while running on my local machine, how to solve it??
@burgoscardenasharashil3322
@burgoscardenasharashil3322 7 ай бұрын
and the requirements.txt file ? Shouldn't it be included in the deployed files?
@thomasedwardking7286
@thomasedwardking7286 3 жыл бұрын
Great video, mate! I really got a lot out of it.
@maheshjadhav8071
@maheshjadhav8071 2 жыл бұрын
I have local csv files on computer which I did read in script, how can I give path to make ot usable for all
@phuongho9908
@phuongho9908 3 жыл бұрын
So question, let say I want to add another section below the current one like "Meter to Decimeter Converter" and so on, any tip (approute POST method related) to follow beside just plainly do it like line by line in .html to keep all simple?
@AnrifiddineAbdoulatuf-om2zy
@AnrifiddineAbdoulatuf-om2zy 7 ай бұрын
thant you. but Is it necessary to have an index.html file?
@lukeabergwest5043
@lukeabergwest5043 4 жыл бұрын
Really helpful, thanks!
@bharat_wagh
@bharat_wagh 3 жыл бұрын
May you please provide details on the backend.py file?
@abnerhernandez6485
@abnerhernandez6485 3 жыл бұрын
hell yeah this worked like a charm
@FaisalKhrisan
@FaisalKhrisan 3 күн бұрын
how about if I have database
@reivmarmalade
@reivmarmalade 5 ай бұрын
bro i cant reach the websites , what did you do in backend file
@mahiatlinux
@mahiatlinux 3 жыл бұрын
Hey Ardit, Thanks for posting so much knowledge! I wonder why you aren't posting anymore. Its been 2 years.
@richardbrake1523
@richardbrake1523 2 жыл бұрын
Wow simple instructions, thanks for the guidance!
@kunalkumarbarman9610
@kunalkumarbarman9610 4 жыл бұрын
I have one doubt please reply , If i want to install any module there then ? Like pyrebase
@danielloiola150
@danielloiola150 2 жыл бұрын
How do you pip install stuff?
@CanalRD
@CanalRD Жыл бұрын
it never works for me. I want to pu my chatbot using PythonAnywhere but there is always an error.
@kirubababu7127
@kirubababu7127 4 жыл бұрын
Could you give some idea to avoid the below error, """con = pyodbc.connect(driver='{ODBC Driver 17 for SQL Server}',host='LENOVO\SQLEXPRESS',database='students',trusted_connection='tcon',user='root1 ',password='Password@MS').cursor() pyodbc.Error: ('01000', u"[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)") """ When i execute the same code by installed app like notepad++, expected output getting.
@BaSti395
@BaSti395 22 сағат бұрын
can i link my domain? if yes how?
@karanlakhan8335
@karanlakhan8335 4 жыл бұрын
Sir Plz help with the Connection of database with pymysql (library) ..
@kamaleshsingh1309
@kamaleshsingh1309 4 жыл бұрын
i will help u call me at 8789226053 if u want to connect with pysqlite3 or sql database
@rubenscj4772
@rubenscj4772 5 жыл бұрын
Thank you for Tutorial !!!!!! Help me a lot . i will lokk for you in UDEMY
@Rocio91117
@Rocio91117 6 ай бұрын
How it works with sql server?
@delvinnj7941
@delvinnj7941 2 жыл бұрын
Thank you, But how make database connection sqlite3
@mahit-m
@mahit-m 4 жыл бұрын
Thanks for such a simple and nice video
@yusiferzendric1489
@yusiferzendric1489 3 жыл бұрын
thanks a lot, may God bless you dude, again thanks a lot. I need this!!
@benaltschuler1248
@benaltschuler1248 Жыл бұрын
Are the source code files still available? I can't get the links to work.
@sajeevr2464
@sajeevr2464 4 жыл бұрын
simply awesome explanation
@yasinozkurt
@yasinozkurt 3 жыл бұрын
Hi, thanks for the video . I have a question, i used lots of libraries in app.py . Is that a problem? Does pythonanywhere install all of it by itself?
@yasinozkurt
@yasinozkurt 3 жыл бұрын
i mean i had to pip install them to import inside the code, what do i do to make it work fine when i deploy the code?
@adonnihaykel3767
@adonnihaykel3767 3 жыл бұрын
hey man, did u found the solution?
@yasinozkurt
@yasinozkurt 3 жыл бұрын
You should use bash console to pip install the libraries you used
@aaron7109
@aaron7109 4 жыл бұрын
Make tutorial for to deploy python flask web app but with selenium in it, I get error the hole time that dhey don't find my geckodriver
@carolyaza
@carolyaza 3 жыл бұрын
thanks so much! super simple and works!
@SakethGandham-g2u
@SakethGandham-g2u 28 күн бұрын
thanks so much it's very usefull
@a.gospelmlgowjchristamen
@a.gospelmlgowjchristamen 8 ай бұрын
Thank you soooooo much, Godblessyou, awesome work
@hariganesan4933
@hariganesan4933 2 жыл бұрын
Not able to access the code! Can you share it across! Thanks
@reold
@reold 4 жыл бұрын
We are soo luck to do all this for free! Ponder upon this, what if python was paid, what if you could only purchase a pythoneverywhere account?
@Rocio91117
@Rocio91117 6 ай бұрын
I have error with app.py in sql server driver
@dennisking8281
@dennisking8281 Жыл бұрын
I'm getting a permissions error: PermissionError: [Errno 13] Permission denied: '/mnt/data' when trying to run my application. I don't know how to address it.
@pythonhow
@pythonhow Жыл бұрын
Hi @dennisking8281, A PermissionError: [Errno 13] Permission denied: '/mnt/data' typically occurs when your application does not have the necessary permissions to access a directory or file. On a platform like PythonAnywhere, this could happen if your code is trying to access a directory that your user account isn't allowed to access, or if you're trying to perform an operation that's not permitted. Here area few steps you can take to resolve this issue: 1- Check File Paths: Ensure that your code is using the correct file paths. On PythonAnywhere, you have a specific directory structure, and you should only write to your home directory (e.g., /home/YourUsername/) or to directories where your user has write permissions. 2- Check Permissions: On PythonAnywhere, you don't have permission to write to certain directories (like /mnt/data which is typical in a local environment). You need to modify your code to write to a directory where you have permissions. 3- Use the Correct Directory: Modify your Flask app's code to save files in a directory you have write access to. Typically, you can use a directory within your user's home directory (e.g., /home/YourUsername/myapp/data/).
@shekargrsd8400
@shekargrsd8400 3 жыл бұрын
I have pickle file also,where should I upload the pickle file
@derikaem8021
@derikaem8021 2 жыл бұрын
what is this backend.py? is it mandatory?
@other8094
@other8094 3 жыл бұрын
Hey this was helpful, thanks! How would alter the flask app to have multiple input boxes that route to different functions?
@swiftstartechnology3213
@swiftstartechnology3213 4 жыл бұрын
very helpful perfect & clear!
@courtney_ann7988
@courtney_ann7988 2 жыл бұрын
Very helpful video. I get an internal server error when I try to login to my website. The login page works when I run my flask app on my localhost. What could be the issue?
@sawon_stories
@sawon_stories 4 жыл бұрын
can I follow the way to deploy my dash app?
@ashuthinks
@ashuthinks 4 жыл бұрын
I have a simple single file mydata.py which has main method and while loop n I want to deploy it on webjob how to do it any link?
@neeraj3080
@neeraj3080 4 жыл бұрын
Thank u so much bro. I need to this type video.
@RulebookofWisdom-db2fk
@RulebookofWisdom-db2fk 9 ай бұрын
Comment je peux afficher les fichiers .css
@DamosyTheFreckle
@DamosyTheFreckle 6 ай бұрын
What if I've got javascript file?
@bhaskarsrivastava5654
@bhaskarsrivastava5654 5 жыл бұрын
can you please help me to post data from postman in a flask app on pythonanywhere
@luqmanhadi8715
@luqmanhadi8715 Жыл бұрын
i try to deploy my flask to pythonanywhere and it run smooth, but when i try to fetch and post api from my flask server, it blocked by cors, how do i bypass it?
@pythonhow
@pythonhow Жыл бұрын
To handle CORS in a Flask application, you can use the Flask-CORS extension, which makes it easy to add CORS headers to your responses. Here's how you can set it up: 1- Install Flask-CORS: First, make sure you install the Flask-CORS extension by running: pip install flask-cors If you're using a requirements.txt file for your PythonAnywhere app, add flask-cors to it. 2- Import and Initialize Flask-CORS: In your Flask application, import and initialize the CORS extension: from flask import Flask from flask_cors import CORS app = Flask(__name__) CORS(app) 3- Configure CORS: You can also configure CORS for specific routes or resources and set various options like allowing specific domains, headers, and methods: from flask_cors import cross_origin @app.route("/api/some_resource") @cross_origin() # This decorator allows CORS for all origins on this route def some_resource(): return jsonify(data="some data") 4- Deploy Changes: After making changes to your Flask application, don't forget to push these changes to PythonAnywhere and reload your web app for the changes to take effect. 5- Testing: Test the API endpoints from your front-end application to ensure that the CORS issue has been resolved.
@OnlyCode-es9cp
@OnlyCode-es9cp Жыл бұрын
what about dependencies
@praveenkirsur
@praveenkirsur 4 жыл бұрын
Any suggestion on how to install a Python script on a cPanel hosting? I want to install Quillpad.com script on to one of my domain. Please suggest.
@anthonykarrick7068
@anthonykarrick7068 Жыл бұрын
what if i have a txt and yaml file instead of an html file?
@pythonhow
@pythonhow Жыл бұрын
If you have .txt and .yaml files that you need to upload to PythonAnywhere, the process is similar to uploading any other type of file. Using the PythonAnywhere Web Interface: 1- Compress the Files: If you're on a free account and have multiple files, it's easier to compress them into a single .zip archive on your local machine. 2- Upload the Archive: Use the "Files" tab on PythonAnywhere to upload the .zip file. 3- Unzip the Files: Use a bash console on PythonAnywhere to unzip the files: unzip your-archive.zip
@ShameleSis
@ShameleSis 3 жыл бұрын
how to connect database
@baqirhussein1109
@baqirhussein1109 4 жыл бұрын
the html and css code works but python code dosn't works. please anyone help me, i relly nead help.
@shuvadipghosh374
@shuvadipghosh374 3 жыл бұрын
Sir please tell how to enable https ?
@shimaazizzadeh929
@shimaazizzadeh929 Жыл бұрын
The files are not opening.
@Unknownwomen-so7cw
@Unknownwomen-so7cw Ай бұрын
Have you trained ChatGpt
@MrGamingXD1
@MrGamingXD1 4 жыл бұрын
My application takes a CSV file and displays the contents of the file. After hosting the webpage, I uploaded the file and clicked submit. But it shows this error message : "Internal Server Error" "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application." What should happen is that when the user clicks submit button after uploading the csv file, the python app sends data back to the html file to populate the page with data from the csv file.
@aseelofmianwali8293
@aseelofmianwali8293 4 жыл бұрын
masla solved or i shld help?
@aishwarysaxena5301
@aishwarysaxena5301 4 жыл бұрын
Someone help me how can I make database work as I put my database file into folder but when I try to put data inside it doesn't show in my table but when i run local server it shows data there as I m using Sqlite not mysql
@kamaleshsingh1309
@kamaleshsingh1309 4 жыл бұрын
call me at 8789226053 i will help u
@safiyanaazshaikh2546
@safiyanaazshaikh2546 4 жыл бұрын
i am getting module not found error for all the python libraries instead they are installed what to do
@shaikhmudassir6874
@shaikhmudassir6874 4 жыл бұрын
Try to install Modules which not found in your system using 'pip' command. Even if it will generate error then uninstall every thing and reinstall python in customize directory (c:/python/). and then again install modules using 'pip' command. It's my suggestion by personal experience.I have also faced these type of problems at initial stage. I hope it will help you :)
@SajnaP-s3e
@SajnaP-s3e Жыл бұрын
It was very helpful, but something went wrong, could not figure out what
@siddharthkaushik286
@siddharthkaushik286 2 жыл бұрын
Thanks a lot Sir
@diviravi9148
@diviravi9148 7 ай бұрын
How to upload a file which is more than 100mb??
@dennisasamoah2213
@dennisasamoah2213 4 жыл бұрын
great video
@gulrukh1386
@gulrukh1386 10 ай бұрын
Wonderful video, but I am still behind of you. I have one big question, as you have cleared much of my logic in Hosting. Question: As I have multiple files, one Python file, One index.html file, other are libraries and one Font folder, how I can arrange all these to RUN my APP on Web? Thanks please, respond me as soon as possible. with many thanks, Subscribed already....
@pythonhow
@pythonhow 10 ай бұрын
You can include the libraries in a requirements.txt file and upload that file to the web server.
@unubiopaluwa
@unubiopaluwa 3 жыл бұрын
Thank Thank so much for this. How do I plug in my sqlite3 with this method?
@pythonhow
@pythonhow 3 жыл бұрын
Sqlite3 stores data in a .db file. You work on that file locally, and then upload the file on PythonAnywhere along with the other files of your project.
@unubiopaluwa
@unubiopaluwa 3 жыл бұрын
@@pythonhow Ok, my understanding here is you mean I can upload my app.db file to the project directory on pythonanywhere just like it has been on my pc while I was running on localhost?
@pythonhow
@pythonhow 3 жыл бұрын
@@unubiopaluwa Exactly! It is just a file like all others.
@unubiopaluwa
@unubiopaluwa 3 жыл бұрын
@@pythonhow Thank you so much
@jithmarathnayaka2298
@jithmarathnayaka2298 3 жыл бұрын
When I deploy my project I get an error saying "ModuleNotFoundError: No module named 'camera'" So how to I import this module? Does anyone has any idea?
@jaden_ong
@jaden_ong 3 жыл бұрын
Go to Consoles, create a bash console, and enter command "pip3 install camera --user"
@invisible9142
@invisible9142 4 жыл бұрын
hi, first of all thank you so much for such a simple way to show to how to make a flask app live!!!!! I am absolutely new in learning React and built a simple search web app that is using Flask to search a database and return data to render via react again. My app is working fine in my local host and I am looking how I can deploy such app in internet using any of the free live server. I have been looking for a video that will server my need but everyone is talking in so high level, its hard to follow. can you help?? or anyone?? for a relevant tutorial ?? really stuck for over a week now!!
@TheOne-rv6hg
@TheOne-rv6hg 4 жыл бұрын
How to share project with database
@TheOne-rv6hg
@TheOne-rv6hg 4 жыл бұрын
I want to deploy database
@vivuuc4209
@vivuuc4209 4 жыл бұрын
easy and simple !
@shitalujjainkar4109
@shitalujjainkar4109 4 жыл бұрын
Thank for this vedio. how to receive data in this app please explain.
@mstardomfinance8389
@mstardomfinance8389 4 жыл бұрын
You got to create a template folder and create an index.html file in it, which includes your HTML form which in turn includes your input tags with input type and name or/ Id if that is what your app needs. Then you got to apply your Jinja2 variables or ginger statements if your app needs them. I can explain it to you if you send me a text message stating that you need help submitting data to your python app. The company number is 631-747-7237, the company name is Mstardom, Inc. and the website is mstardom.com .
@Lanne55555player
@Lanne55555player 2 жыл бұрын
Thanks!
@deepakmisra8973
@deepakmisra8973 4 жыл бұрын
Thank you sir
@magelauditore333
@magelauditore333 4 жыл бұрын
but what about static files how to get design on live server. pls if anyone have any idea pls pls comment. I will be highly grateful
@keh_mananalyais5365
@keh_mananalyais5365 7 ай бұрын
Thank you
@sociologie4507
@sociologie4507 4 жыл бұрын
THANK YOU
@jasonogen1605
@jasonogen1605 9 ай бұрын
"DearTeam, I wanted to express my heartfelt gratitude for the invaluable assistance your channel provided me with. Thanks to your informative content, I was able to Your dedication to sharing knowledge has truly made a difference in my life. Thank you immensely!"
@ncmusic9678
@ncmusic9678 4 жыл бұрын
What if I want to upload on my own website.... Say for example : www.pythontest.com How do I upload here?
@tanmaymishra9203
@tanmaymishra9203 4 жыл бұрын
How to push 25-30 files in a folder in one go...here I can upload one file at a time
@Kunal98v
@Kunal98v 4 жыл бұрын
Zip it and then upload
@SWC-n5i
@SWC-n5i 3 жыл бұрын
감사합니다
@justlzd2908
@justlzd2908 3 жыл бұрын
thanks
How to Deploy a Flask App to Render | Flask Render Deployment
11:04
Arpan Neupane
Рет қаралды 13 М.
build a meme Python website (Flask Tutorial for Beginners)
13:30
NetworkChuck
Рет қаралды 533 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Deploy Python Flask App on Pythonanywhere.com
12:06
Aditya Pai Thon
Рет қаралды 94 М.
Best Platforms to Host Python Apps (for free!!)
9:50
Patrick Loeber
Рет қаралды 143 М.
Make A Python Website As Fast As Possible!
22:21
Tech With Tim
Рет қаралды 716 М.
Deploy a Django web app to Python Anywhere [FREE]
19:04
Cloud With Django
Рет қаралды 151 М.
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 1,6 МЛН
Simple Web App with Flask and Heroku - Python GUI for Beginners
25:07
Python Simplified
Рет қаралды 231 М.
How to Deploy a Flask App to Vercel | Flask Vercel Deployment
9:32
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН