Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install 'Flask' Submodule #23

Closed
jeff1evesque opened this issue Aug 22, 2014 · 1 comment
Closed

Install 'Flask' Submodule #23

jeff1evesque opened this issue Aug 22, 2014 · 1 comment

Comments

@jeff1evesque
Copy link
Owner

Now, that we have flask in this repository, we will proceed with the installation:

sudo apt-get install python-pip
sudo python setup.py develop
@jeff1evesque
Copy link
Owner Author

Flask has been properly installed:

$ cd /var/www/html/machine-learning/flask/
$ ls
index.py
$ python index.py
 * Running on http://127.0.0.1:5000/

When we visit the page within a browser:

flask

The terminal responds respectively:

$ python index.py
 * Running on http://127.0.0.1:5000/
127.0.0.1 - - [22/Aug/2014 08:19:55] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [22/Aug/2014 08:19:56] "GET /favicon.ico HTTP/1.1" 404 -

When we close the index.py script:

$ python index.py
 * Running on http://127.0.0.1:5000/
127.0.0.1 - - [22/Aug/2014 08:19:55] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [22/Aug/2014 08:19:56] "GET /favicon.ico HTTP/1.1" 404 -
^C$

and refresh the browser window, we notice index.py is no longer accessible:

flask-offline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant