Wednesday, October 17, 2018

Python Flask Example | Introduction to Flask

Python Flask Example | Introduction to Flask 

Python Flask Example: The first factor you may want is a few forms of a server. you'll host a Flask application domestically if you would like. If you are employing a Windows OS, operational an area MySQL information goes to be a challenge if you are a beginner, however, you absolve to strive. We're reaching to show a way to develop on associate degree actual net server, tho' it's extremely advised by ME that you just don't develop and take a look at on your live server.

Introduction to Flask

This series is intended to assist developers to answer that question by comparison those four frameworks. to match their options and operations, i will take all through the method of constructing AN API for an easy commotion List internet application. The API is itself fairly straightforward:
New guests to the positioning ought to be able to register new accounts.
Registered users will log in, log out, see info for his or her profiles, and edit their info.

Registered users will produce new task things, see their existing tasks, and edit existing tasks.

Flask Setup

Like most generally used Python libraries, the Flask package is installable from the Python Package Index (PPI). initial produce a directory to figure in (something like flask_todo could be a fine directory name) then install the flask package. you may conjointly need to put in flask-sqlalchemy. therefore, your Flask application contains a easy thanks to sit down with a SQL information.

I like to try and do this kind of labor at intervals a Python three virtual surroundings. to induce there, enter the subsequent on the command line:

$ mkdir flask_todo
cd flask_todo
$ pipenv install --python 3.6
$ pipenv shell
(flask-someHash) $ pipenv install flask flask-sqlalchemy

I hope this lecture is very helpful to understand the basic installation of Python Flask into your computers.
Some useful link that is related to the article:



No comments:

Post a Comment

Spammings are not Allowed