- Read the guideline before start
In this task, you will implement search feature for your website and write tests for your project.
- Implement search feature for all 3 pages with content:
- drivers - by username
- cars - by model
- manufacturers - by name
- Write tests for custom and for core project features (no need to test built-in functionality). Use this tutorial as helper. You decide what to test and how to test (train your testing skills here).
- Write tests for the searching feature that you have implemented. Make sure yourself, that it works as expected.
NOTE: Attach screenshots of all created pages to pull request. It's important to attach images not links to them.
Follow these steps if you need to use crispy_forms
v2.0 with Python 3.11:
- Add
CRISPY_TEMPLATE_PACK
tosettings.py
.
CRISPY_TEMPLATE_PACK="bootstrap4"
- Add these apps to
INSTALLED_APPS
and install them corresponding to theCRISPY_TEMPLATE_PACK
bootstrap version.
INSTALLED APPS = [
...,
"crispy_bootstrap4",
"crispy_forms",
]