LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2016, 05:39 AM   #1
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Rep: Reputation: Disabled
Can't get Flask to connect from localhost


Hi there,

I am trying to learn how to build a webapp in Python using Flask, I have looked at various tutorials, and they are all the same, yet, I get unable to connect from any browser on a Raspberry Pi. What am I doing wrong please.

This is the tutorial I am trying to follow on this occasion:
http://code.tutsplus.com/tutorials/c...sql--cms-22972
 
Old 09-08-2016, 05:55 AM   #2
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Original Poster
Rep: Reputation: Disabled
Hi there,

Ok, I installed it for python2 not python3, works with python2 fine.

Regards
iFunk
 
Old 09-08-2016, 06:17 AM   #3
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Original Poster
Rep: Reputation: Disabled
Ok after a reboot it's not working again.

If I run the app from the command line, it tells me:
Code:
* Running on http://127.0.0.1:5000/
* Restarting with stat
Why won't it show up in the browser?
 
Old 09-08-2016, 07:54 AM   #4
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Original Poster
Rep: Reputation: Disabled
Ok,I think I'm just being a little green here, it seems that so long as the app is running, then it will show up in the browser, Looks like I have to go back to the very basics of how a webserver actually works.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple applications using different ports not running in flask deepanshu1404 Linux - Newbie 0 05-04-2015 05:45 PM
LXer: Dynamic website templates with Flask and Jinja2 LXer Syndicated Linux News 0 04-26-2014 05:24 PM
[SOLVED] Can't connect to localhost by IP evgenish Linux - Networking 6 12-31-2010 01:53 AM
I can't connect to anything other than localhost Virtual Circuit Debian 4 02-18-2010 03:28 AM
Cannot connect to anything on localhost JohnKFT Slackware 17 05-11-2005 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration