Gentelella is a free to use bootstrap admin template for developing Python Flask web app, with custom Ajax libraries which includes variety of chart scripts like eChart, Morris Chart etc.
It packed with all must have AJAX and CSS libraries for a Python Web Geek
The bootstrap is also a ready to use flask app, all you need to do is customize the custom script. The app uses blueprint to organize flask routes, which is automatically created based on based on modules.
You can develop database powered app with less pain in few hours with this awesome bootstrap from Colorlib.
Clone and start using the project today
git clone https://github.com/afourmy/flask-gentelella.git
For instruction and the bootstrap project please visit GitHub page
Have a look at my demo app hosted on heroku.com which is not using any database, it depends on simple json API
Building a dynamic website made so easy with Python -Flask, a Micro FrameWork which helps us to create the websites like Twitter and even more. Forget about the complicated web programming languages, start learning Python. So where you start, Python or Flask ?. I should say, you have to learn basics of how Python first, just have a look at Python.org
Which IDE I should choose? IDE helps you to write, compile, build programs. Pycharm is a good choice, Visual Studio also had added the feature for Python programmers in their 2013 edition onwards. You can Google it for more options. I Prefer Pycharm.
Flask and Web, How it works?
Flask arranges web pages as basic URL or routes. Let’s take a look at the Pycharm App code.
Python and Flask have the rich set of libraries and Classes which offer variety of tasks. You need not do lots code in Flask. Let’s come to the topic.
Finest example of redirecting route/web page is, when user login successfully , it is wise to redirect the login route to ‘chat room’, on a chat app. To do this you need to import the following packages.
from flask import redirect, url_for, request
After that you can use the redirect and url_for functions with return statement as follows
app.route(‘/login’, methods=[‘POST’, ‘GET’])
form = LoginForm()
user = User.query.filter_by(username=form.username.data).first()
if check_password_hash(user.password, form.password.data):
login_user(user, remember=form.remember.data) return redirect(url_for(‘chatroom’))
return ‘Invalid user name’
return render_template(‘signin.html’, form=form)
In our Chat example if the user login then the route will be redirected to ‘Chatroom’ route, which is the chatroom page for our app.
Flask is a Python framework which can be used to build the web application from scratch. Flask is micro frame work which capable to build websites like Instagram, twitter and anything at programmers will.
SqlAlchemy is a package in Python Flask which simplifies data base connections. The following simple Application will explain ….. how.
This project was built on windows OS and Pycharm IDE