This GitHub repository contains a sample form that is made from the flask microframework for Python.
Project Structure:
run.py
/app
__init__.py
views.py
/templates
greetings.htm
reply.htm
/flask
A bunch of important files
-
Python
The code in this application has been tested on python 3.6, but other version should work as well.
-
Flask Library
The Flask library does not come pre-instlled with Python.
Use the command "pip install flask" in command prompt. Works for Windows, OS X and Linux.
Everything else is done by python.
The use of a virtualenv is encouraged but not required.
- Click on Clone/Download icon.
- Download zip
- Extract to deseired location.
-
The following process it to be used on Windows.
- Open Command Prompt
- Change to download directory.
cd GCIWebForm
- Run the following command -
python run.py
- Wait for a few seconds. The command is being processed.
- Scroll to the end. The last line should look something like this -
* Running on http://127.0.0.0:5000/ (Press CTRL+C to quit)
- Copy and paste the URL in a web browser.
- A Username textbox will appear. Type in a username and enjoy!