Skip to content

Just a quick demo of how to show 5 results per page (of a example list)

Notifications You must be signed in to change notification settings

animehunter123/flask-paginate-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-paginate-example

Just a quick demo of how to show 5 results per page (of a example list)

Updated to requiring LOGGING in before you can see the randomly generated results.

To prepare your environment and run this properly I recommend doing it this way:

pip3 install virtualenv # or use "pip" instead of pip3
python -m virtualenv venv
./venv/sources/activate

ls # You will now see just the code, but no database file nor migrations

# This will install flask_login, flask_pagination, into your python virtual environment
pip3 install -r ./requirements.txt  

flask db init ; flask db migrate -m 'initial db' ; flask db upgrade

ls # You will now see just the code AND a EMPTY SQLITE database file and migrations folder

python3 app.py

Now go to the webpage, and you will see that the green navbar doesnt have the "Results" link...

Now click Register, make a login, and login... and the Results link will appear

Click Results and a paginated (5 random letters per page) list will appear!!!

image

About

Just a quick demo of how to show 5 results per page (of a example list)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published