Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask_sqlite

A Flask Application that demonstrates Flask-WTF and Flask-SQLAlchemy using a SQLite database.

Instructions

As always ensure you create a virtual environment for this application and install the necessary libraries from the requirements.txt file.

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Then create the sqlite3 database file and create the tables based on our app/models.py.

$ touch /tmp/mydatabase.db
$ python
>>> from app import db
>>> db.create_all()
>>> quit()

Then start the development server

$ python run.py

Browse to http://0.0.0.0:8080

You can then add new users by browsing to http://0.0.0.0:8080/add-user and view a list of users by browsing to http://0.0.0.0:8080/users

About

An example Flask app using an SQLite database

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages