Skip to content

DevStrikerTech/Python-Flask-CMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atl-text-1 atl-text-2

Python-Flask-CMS

alt text

Installation

=> Install latest version of Python3

=> Install pip

pip install pipenv

=> Clone repository and open project folder finally execute following on command promt/terminal

pipenv shell
pipenv install flask
pipenv install flask-mysqldb
pipenv install flask-WTF
pipenv install passlib

MySQL Setup

=> Execute following sql commands/statements to have required database

CREATE DATABASE myflaskapp;
USE myflaskapp;
CREATE TABLE users(id INT(11) AUTO_INCREMENT PRIMARY KEY, email VARCHAR(100), password VARCHAR(100), register_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP);
SHOW TABLES;
DESCRIBE users;

Usage

=> From project folder open app.py and configure MySQL

app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = ''
app.config['MYSQL_DB'] = 'myflaskapp'
app.config['MYSQL_CURSORCLASS'] = 'DictCursor'

Note: Don't forget to change MySQL host, username, password and database name based on your setup

TO-DO: Run app.py and copy localhost url to your web browser

Documentation

http://flask.palletsprojects.com/en/1.1.x/

https://wtforms.readthedocs.io/en/stable/

https://flask-mysqldb.readthedocs.io/en/latest/

About

Flask, Bootstrap and MySQL Web Application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published