├── ParthPratim
├── Procfile
├── static
│ ├── img
│ │ └── FOSSASIA.png
│ ├── fossasia-index.css
│ ├── fossasia-hello.css
│ └── fossasia-hello.css~
├── requirements.txt
├── app.py
├── templates
│ ├── hello.html
│ └── index.html
└── README.md
├── AKostiv_Flask_App
├── Procfile
├── static
│ ├── img
│ │ └── icon.gif
│ └── css
│ │ └── style.css
├── templates
│ ├── greeting.html
│ └── index.html
├── requirements.txt
├── app.py
└── README.md
├── Aryan9101
├── run.py
├── app
│ ├── __init__.py
│ ├── templates
│ │ └── greetings.htm
│ └── views.py
└── README.md
├── chaitanyabaranwal
├── config.py
├── app.py
├── app
│ ├── __init__.py
│ ├── forms.py
│ ├── templates
│ │ ├── index.html
│ │ └── base.html
│ └── views.py
└── README.md
├── 0x48piraj
├── images
│ ├── ui.PNG
│ ├── demo.gif
│ ├── terminal.PNG
│ └── README.md
├── README.md
├── index.html
├── app.py
├── scraper.py
└── static
│ ├── bootstrap-theme.min.css
│ └── bootstrap.min.css
├── hackerBoy007
├── static
│ └── style.css
├── README.md
├── templates
│ ├── name.html
│ ├── error.html
│ ├── index.html
│ └── layout.html
└── main.py
├── axwhyzee
├── static
│ ├── happy.jpg
│ ├── default-avatar.png
│ ├── profile-stylesheet.css
│ └── homepage-stylesheet.css
├── app.py
├── README.md
└── templates
│ ├── profile.html
│ └── homepage.html
├── nagalakshmiv2004
├── Form.pyc
├── templates
│ ├── Result.html
│ └── Form.html
├── Form.py
└── README.md
├── README.md
├── srihari_unnikrishnan
├── __pycache__
│ ├── form.cpython-36.pyc
│ └── main.cpython-36.pyc
├── templates
│ ├── res.html
│ └── index.html
├── README.md
└── main.py
├── Spadi0
├── README.md
├── templates
│ ├── greeting.html
│ └── index.html
└── app.py
├── niteshkumarniranjan
├── README.md
├── templates
│ ├── hello.html
│ ├── index.html
│ └── template.html
└── app.py
├── abishekvashok
├── Readme.md
├── app.py
└── templates
│ ├── name.html
│ └── index.html
├── idealadarsh
├── app.py
├── README.md
└── templates
│ ├── result.html
│ └── index.html
├── yashkumarverma
├── README.md
├── app.py
└── templates
│ ├── showGreeting.html
│ └── index.html
└── LICENSE
/ParthPratim/Procfile:
--------------------------------------------------------------------------------
1 | web: gunicorn app:app
2 |
--------------------------------------------------------------------------------
/AKostiv_Flask_App/Procfile:
--------------------------------------------------------------------------------
1 | web: gunicorn app:app
2 |
--------------------------------------------------------------------------------
/Aryan9101/run.py:
--------------------------------------------------------------------------------
1 | #!flask/bin/python
2 | from app import app
3 | app.run(debug=True)
4 |
--------------------------------------------------------------------------------
/chaitanyabaranwal/config.py:
--------------------------------------------------------------------------------
1 | WTF_CSRF_ENABLED = True
2 | SECRET_KEY = 'youcannotguessit'
--------------------------------------------------------------------------------
/chaitanyabaranwal/app.py:
--------------------------------------------------------------------------------
1 | #!flask/bin/python
2 | from app import app
3 | app.run(debug=True)
4 |
--------------------------------------------------------------------------------
/0x48piraj/images/ui.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/0x48piraj/images/ui.PNG
--------------------------------------------------------------------------------
/hackerBoy007/static/style.css:
--------------------------------------------------------------------------------
1 | body{
2 | font-family: arial;
3 | background: #000;
4 | font: #fff
5 | }
--------------------------------------------------------------------------------
/0x48piraj/images/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/0x48piraj/images/demo.gif
--------------------------------------------------------------------------------
/axwhyzee/static/happy.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/axwhyzee/static/happy.jpg
--------------------------------------------------------------------------------
/nagalakshmiv2004/Form.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/nagalakshmiv2004/Form.pyc
--------------------------------------------------------------------------------
/0x48piraj/images/terminal.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/0x48piraj/images/terminal.PNG
--------------------------------------------------------------------------------
/nagalakshmiv2004/templates/Result.html:
--------------------------------------------------------------------------------
1 |
2 |
Response
3 | Hi {{ name }}. Have a nice day
4 |
--------------------------------------------------------------------------------
/ParthPratim/static/img/FOSSASIA.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/ParthPratim/static/img/FOSSASIA.png
--------------------------------------------------------------------------------
/axwhyzee/static/default-avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/axwhyzee/static/default-avatar.png
--------------------------------------------------------------------------------
/AKostiv_Flask_App/static/img/icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/AKostiv_Flask_App/static/img/icon.gif
--------------------------------------------------------------------------------
/Aryan9101/app/__init__.py:
--------------------------------------------------------------------------------
1 | from flask import Flask
2 |
3 | app = Flask(__name__)
4 | app.secret_key = "7tt274t34t214t171"
5 | from app import views
6 |
--------------------------------------------------------------------------------
/chaitanyabaranwal/app/__init__.py:
--------------------------------------------------------------------------------
1 | from flask import Flask
2 |
3 | app = Flask(__name__)
4 | app.config.from_object('config')
5 | from app import views
6 |
--------------------------------------------------------------------------------
/ParthPratim/requirements.txt:
--------------------------------------------------------------------------------
1 | click==6.7
2 | Flask==0.12.2
3 | gunicorn==19.7.1
4 | itsdangerous==0.24
5 | Jinja2==2.10
6 | MarkupSafe==1.0
7 | Werkzeug==0.13
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flask_Simple_Form
2 | Flask app with a Simple Form.
3 | This is the repository used for creating examples of Flask (microframework for python).
4 |
--------------------------------------------------------------------------------
/srihari_unnikrishnan/__pycache__/form.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/srihari_unnikrishnan/__pycache__/form.cpython-36.pyc
--------------------------------------------------------------------------------
/srihari_unnikrishnan/__pycache__/main.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fossasia/Flask_Simple_Form/HEAD/srihari_unnikrishnan/__pycache__/main.cpython-36.pyc
--------------------------------------------------------------------------------
/srihari_unnikrishnan/templates/res.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Welcome,{{name}}
5 |
6 |
--------------------------------------------------------------------------------
/0x48piraj/images/README.md:
--------------------------------------------------------------------------------
1 | # Demo!
2 |
3 | 
4 |
5 | ---
6 |
7 | ## UI
8 |
9 | 
10 |
11 | ## Terminal
12 |
13 | 
14 |
--------------------------------------------------------------------------------
/hackerBoy007/README.md:
--------------------------------------------------------------------------------
1 | # Flask_Simple_Form
2 | Flask app with a Simple Form
3 |
4 | Requirements:
5 | python3 - sudo apt-get install python3
6 | pip - sudo apt-get install python3-pip
7 | flask - sudo pip3 install flask
8 |
9 | To run the server,navigate into the app directory and run: python3 main.py
10 |
--------------------------------------------------------------------------------
/Spadi0/README.md:
--------------------------------------------------------------------------------
1 | # Google CodeIn FOSSASIA Flask Task
2 |
3 | ## Deployed Application:
4 | https://googlecodein-fossasiaflask.herokuapp.com/
5 |
6 | ## To run:
7 | * (OPTIONAL, but recommended) Install and use a virtualenv (not included)
8 | * Run 'pip install -r requirements.txt'
9 | * Run 'python app.py'
10 |
--------------------------------------------------------------------------------
/Spadi0/templates/greeting.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Greeting
5 |
6 |
7 |
8 | Have a nice day, {{name}}!
9 |
10 |
11 |
--------------------------------------------------------------------------------
/chaitanyabaranwal/app/forms.py:
--------------------------------------------------------------------------------
1 | from flask_wtf import Form
2 | from wtforms import StringField, BooleanField
3 | from wtforms.validators import DataRequired
4 |
5 | class LoginForm(Form):
6 | openid = StringField('openid', validators = [DataRequired()])
7 | remember_me = BooleanField('remember_me', default = False)
--------------------------------------------------------------------------------
/nagalakshmiv2004/templates/Form.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Simple Form Application
4 |
5 |
11 |
--------------------------------------------------------------------------------
/hackerBoy007/templates/name.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 | {% block title %}Index{% endblock %}
3 |
4 | {% block content %}
5 |
6 |
7 |
11 |
12 | {% endblock %}
13 |
--------------------------------------------------------------------------------
/nagalakshmiv2004/Form.py:
--------------------------------------------------------------------------------
1 | from flask import Flask, render_template, request
2 | app=Flask(__name__)
3 | @app.route('/form', methods=['GET', 'POST'])
4 | def hello_world():
5 | if request.method == 'GET':
6 | return render_template('Form.html')
7 | elif request.method == 'POST':
8 | return render_template('Result.html', name = request.form['username'])
--------------------------------------------------------------------------------
/ParthPratim/app.py:
--------------------------------------------------------------------------------
1 | from flask import *
2 | app = Flask(__name__)
3 |
4 | @app.route('/')
5 | def index():
6 | word=request.args.get('name', '')
7 | word = word.strip()
8 | if len(word) > 0:
9 | return render_template('hello.html', name=word)
10 | return render_template('index.html')
11 |
12 | if __name__ == "__main__":
13 | app.run()
14 |
--------------------------------------------------------------------------------
/AKostiv_Flask_App/templates/greeting.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | User Greeting!
5 |
6 |
7 |
8 |
9 | Hava a nice day, {{name}} !
10 |
11 |
12 |
--------------------------------------------------------------------------------
/AKostiv_Flask_App/requirements.txt:
--------------------------------------------------------------------------------
1 | click==6.7
2 | first==2.0.1
3 | Flask==0.12.2
4 | Flask-WTF==0.14.2
5 | gunicorn==19.7.1
6 | itsdangerous==0.24
7 | Jinja2==2.10
8 | MarkupSafe==1.0
9 | pbr==3.1.1
10 | pip-tools==1.10.2
11 | six==1.11.0
12 | stevedore==1.27.1
13 | virtualenv==15.1.0
14 | virtualenv-clone==0.2.6
15 | virtualenvwrapper==4.8.2
16 | Werkzeug==0.12.2
17 | WTForms==2.1
18 |
--------------------------------------------------------------------------------
/niteshkumarniranjan/README.md:
--------------------------------------------------------------------------------
1 | ## Simple Flask Form
2 |
3 | A simple form developed using flask web microframework
4 |
5 | ### Library Used :
6 | - wtf_form
7 |
8 | ### Requirements
9 | - python3
10 | - flask (Library) install using pip `pip install flask`
11 | - flask_wtf (Library) install using pip `pip install flask_wtf`
12 |
13 | ### Build and Run
14 | `python app.py`
--------------------------------------------------------------------------------
/abishekvashok/Readme.md:
--------------------------------------------------------------------------------
1 | # SimpleFlaskForm
2 |
3 | A simple form made in Flask
4 |
5 | ## Deployment
6 |
7 | ### Prequisities
8 | - Python
9 | - Flask
10 |
11 | ### Deloyment Instructions
12 |
13 | - Specify the main python file to be run by flask: `export FLASK_APP=app.py`
14 | - Run: `python -m flask run`
15 |
16 | SimpleFlaskForm will be running on http://127.0.0.1:5000/
17 |
18 |
--------------------------------------------------------------------------------
/srihari_unnikrishnan/README.md:
--------------------------------------------------------------------------------
1 | # Flask_Simple_Form
2 | Flask app with a Simple Form
3 |
4 | Requirements:
5 | python3 - `sudo apt-get install python3`
6 | pip - `sudo apt-get install python3-pip`
7 | flask - `sudo pip3 install flask`
8 |
9 | set up by also using `export FLASK APP=main.py`
10 | To run the server,navigate into the app directory and run: `python3 main.py`
11 |
--------------------------------------------------------------------------------
/hackerBoy007/templates/error.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 | {% block title %}Error{% endblock %}
3 |
4 | {% block content %}
5 |
11 |
12 | {% endblock %}
13 |
--------------------------------------------------------------------------------
/idealadarsh/app.py:
--------------------------------------------------------------------------------
1 | from flask import Flask, request, redirect, render_template
2 |
3 | app = Flask(__name__)
4 |
5 | @app.route("/")
6 | def index():
7 | return render_template('index.html')
8 |
9 | @app.route('/result', methods = ['POST'])
10 | def result():
11 | name = request.form['name']
12 | return render_template('result.html', name = name)
13 |
14 | if __name__ == "__main__":
15 | app.run(debug=True,host='0.0.0.0')
--------------------------------------------------------------------------------
/chaitanyabaranwal/app/templates/index.html:
--------------------------------------------------------------------------------
1 | {% extends "base.html" %}
2 |
3 | {% block content %}
4 |
5 | Fossasia Login
6 |
14 |
15 | {% endblock %}
--------------------------------------------------------------------------------
/abishekvashok/app.py:
--------------------------------------------------------------------------------
1 | from flask import Flask,render_template,request,redirect,url_for
2 |
3 | app = Flask(__name__)
4 |
5 | @app.route('/')
6 | def index():
7 | return render_template('index.html')
8 |
9 | @app.route('/',methods=['POST'])
10 | def name():
11 | name = request.form['name']
12 | if name != "":
13 | return render_template('name.html',name=name)
14 | else:
15 | return render_template('index.html', error="No name")
16 |
17 |
--------------------------------------------------------------------------------
/chaitanyabaranwal/app/views.py:
--------------------------------------------------------------------------------
1 | from flask import render_template, flash, redirect
2 | from app import app
3 | from .forms import LoginForm
4 |
5 | @app.route('/index', methods=["GET", "POST"])
6 | def index():
7 | form = LoginForm()
8 | if form.validate_on_submit():
9 |
10 | flash('Hi %s! Have a nice day!' % (form.openid.data))
11 | return redirect('/index')
12 |
13 | return render_template('index.html', title='Fossasia', form=form)
--------------------------------------------------------------------------------
/srihari_unnikrishnan/templates/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/nagalakshmiv2004/README.md:
--------------------------------------------------------------------------------
1 | # Flask Form
2 |
3 | ## Overview
4 | Simple form to complete the google code-in task
5 | https://codein.withgoogle.com/dashboard/task-instances/5691385028018176/
6 |
7 | ## Pre-Requisite
8 |
9 | 1. python 3.x
10 | 2. pip
11 | 3.Flask
12 |
13 |
14 | ## Installing Flask
15 |
16 | 1. pip install virtualenv
17 | 2. venv\Scripts\activate
18 | 3. pip install Flask
19 |
20 | ## How To Run
21 |
22 | set FLASK_APP=Form.py
23 | Flask run
--------------------------------------------------------------------------------
/srihari_unnikrishnan/main.py:
--------------------------------------------------------------------------------
1 | from flask import Flask, render_template,request
2 |
3 |
4 | app = Flask(__name__)
5 | app.secret_key = 'development key'
6 |
7 | @app.route('/')
8 | def contact():
9 | return render_template('index.html')
10 |
11 | @app.route("/result", methods = ['POST'])
12 | def result():
13 | name = request.form["name"]
14 | return render_template('res.html', name = name)
15 |
16 | if __name__ == '__main__':
17 | app.run(debug = True)
--------------------------------------------------------------------------------
/AKostiv_Flask_App/app.py:
--------------------------------------------------------------------------------
1 | from flask import Flask, request, redirect, render_template
2 |
3 | app = Flask(__name__)
4 | app.config['SECRET_KEY'] = 'Thisisasecret!'
5 |
6 |
7 | @app.route('/')
8 | def index():
9 | return render_template('index.html')
10 |
11 | @app.route('/greeting', methods = ['POST'])
12 | def result():
13 | name = request.form['name']
14 | return render_template('greeting.html', name = name)
15 |
16 |
17 | if __name__ == '__main__':
18 | app.run(debug=True)
19 |
--------------------------------------------------------------------------------
/Spadi0/app.py:
--------------------------------------------------------------------------------
1 | from flask import Flask, request, redirect, render_template
2 | from os import urandom
3 |
4 | app = Flask(__name__)
5 | app.config["SECRET_KEY"] = str(urandom(24));
6 |
7 | @app.route('/')
8 | def index():
9 | return render_template("index.html")
10 |
11 | @app.route('/greeting', methods = ["POST"])
12 | def greeting():
13 | POST_name = request.form["name"]
14 | return render_template("greeting.html", name = POST_name)
15 |
16 | if __name__ == '__main__':
17 | app.run(debug = True)
18 |
--------------------------------------------------------------------------------
/chaitanyabaranwal/app/templates/base.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Welcome to Fossasia.
4 |
5 |
6 |
7 | {% with messages = get_flashed_messages() %}
8 | {% if messages %}
9 | {% for message in messages %}
10 | {{ message }}
11 | {% endfor %}
12 | {% endif %}
13 | {% endwith %}
14 | {% block content %}{% endblock %}
15 |
16 |
--------------------------------------------------------------------------------
/hackerBoy007/templates/index.html:
--------------------------------------------------------------------------------
1 | {% extends "layout.html" %}
2 |
3 | {% block title %}Index{% endblock %}
4 |
5 | {% block content %}
6 |
15 | {% endblock %}
--------------------------------------------------------------------------------
/yashkumarverma/README.md:
--------------------------------------------------------------------------------
1 | #Simple Flask app
2 | Takes name of user and grees them hello :)
3 |
4 |
5 | ## Deployed
6 | [http://yashkumarverma.pythonanywhere.com/](http://yashkumarverma.pythonanywhere.com/)
7 |
8 | ## Setup
9 | - Install python3, [Click here](http://docs.python-guide.org/en/latest/).
10 | - Install flash from pip type ```pip install flask```.
11 | - type ```set FLASK_APP=app.py```. (i'm a windows user currenty)
12 | - Then run ```python -m flask run```
13 | - Goto ```http://127.0.0.1:5000``` on your browser and done !.
--------------------------------------------------------------------------------
/ParthPratim/templates/hello.html:
--------------------------------------------------------------------------------
1 |
2 | Hello from Flask
3 |
4 |
5 |
6 |
7 |
8 |
9 | Hi {{ name }}
10 |
11 |
12 | Have a nice day !!!
13 |
14 |
15 |
16 |
17 |
18 |