Playing with Django pagination
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Build Status build status

Team directory


A project to play with Django pagination.

This app uses Python 3.4 and Django 1.10.3


Clone the repo and install all dependencies:

cd team-directory
pip install -r requirements.txt

Run the migrations:

python3 makemigrations
python3 migrate

Run the tests

python3 test

Start the server:

python3 runserver

And go to http://localhost:8000/

Random data

If you want to generate random data to fill the db:

  • Go to
  • Fill in the four fields as name, title, email and image.
  • For name, select a Data Type of names and in options write FemaleName Surname|MaleName Surname.
  • For title, select "Fixed Number of Words" and Generate #3.
  • For email, select "Email".
  • For image, select "Constant", with Loop count: 1 and Values|
  • Down in "Export types" click on the SQL tab, "database table name" is www_person, "database type" is SQLite and unckeck all the checkboxes.
  • Check the "New window/tab" radio button and click on Generate and copy all of it.
  • Open a sqlite session with sqlite3 db.sqlite3 and paste it in the prompt.

You should now have 100 new records. Enjoy!