This repo is intended for testing purposes.
Copying the repository
Before proceeding be aware that this exercise assumes you are using a linux machine with pip and venv installed.
To initialize the repository in your base directory execute ./initialize_repo.sh
To start the webserver locally, in your base directory execute ./run-server.sh
To run tests locally, in your base directory execute ./run-tests.sh
Access the application at http://localhost:8000 Login credentials have been shared with you via email
The application uses 6 models
- django.contrib.auth.models.User - stores user details and is an inbuilt Django model provided by the authentication system
- polls.Site - stores details about a tenant
- polls.Profile - stores additional details for a user. Users can have extra fields and these fields vary for every site based on the profile form. This model refers the ProfilForm and Site model
- polls.ProfileForm - Each site can have their own profile form and this model stores the fields for the profile forms. This model has a reference to a Site.
- polls.Poll - stores the question for the poll.
- polls.Answer - stores answers to the poll and the user who provided the answer. This model has a reference to the Poll and User model.
We're going to have a Migrations Workshop.
Teams You will be split into teams, each consisting of two members.
Migration Tasks During our upcoming session, you will receive your specific migration tasks. Each team will be responsible for implementing and completing their assigned migrations in separate branches.
If you have any questions or require assistance before the session, please do not hesitate to reach out. Please come prepared for the session, and let's make it a productive experience.