I am new to application development and I tried to get to know this with Flask. I followed their wonderful tutorial and read their documentation in the same detail to create my first base application that uses the SQLite3 database.
To accomplish this and in accordance with their instructions, I imported the following:
from __future__ import with_statement from contextlib import closing import sqlite3 from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, flash
and to configure the database with the schema.sql file schema.sql perform the following settings:
drop table if exists entries; create table entries ( id integer primary key autoincrement, title string not null, text string not null );
I access the database using the commands that reappeared in the Flask Tutorial . I get the impression that when creating applications in which users create their own accounts and manage them, I need to create a MySQL database. In this case, what things about my code related to the database do I need to change? I am sure that there is a big difference between working with these two databases, so any recommendation - usage tips or documentation for reading - would be greatly appreciated.
Thank you very much in advance.
source share