Coinmonks
Published in

Coinmonks

How to create YOUR own cryptocurrency!!!

Part - 5: Landing page and Database Access

pic source here
from flask import Flask, render_template
def index():
return render_template('index.html')
Project Structure
pip install Flask-MySQLdb
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = ''
app.config['MYSQL_DB'] = 'crypto'
app.config['MYSQL_CURSORCLASS'] = 'DictCursor'
mysql = MySQL(app)
use crypto; //remember to switch to our database
create table users (name varchar(30), email varchar(30), username varchar(30), password varchar(100));
sqlhelpers.py
app.py
Output Screenshot

Join Coinmonks Telegram group and learn about crypto trading and investing

Also, Read

Get Best Software Deals Directly In Your Inbox

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store