Polls is a Django app to conduct web-based polls. For each question, visitors can choose between a fixed number of answers.
Detailed documentation is in the "docs" directory.
-
Add "polls" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ..., "api", ]
-
Include the polls URLconf in your project urls.py like this::
path("api/", include("api.urls")),
-
Run
python manage.py migrate
to create the polls models. -
Visit http:https://127.0.0.1:8000/api/ to participate in the poll.