Skip to content

Commit

Permalink
Add a new Django assessment missing question. (#2573)
Browse files Browse the repository at this point in the history
* Add a new Django assessment missing question.

Reference for the answer: https://docs.djangoproject.com/en/3.2/topics/db/managers/

* Fix question numbering
  • Loading branch information
sgonsal authored Oct 30, 2021
1 parent e035389 commit ce58b93
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion django/django-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,17 @@ model=Planet
- [ ] SongView
- [x] ListView

#### Q55. Which statement is most acurate, regarding using the default SQLite database on your local/development machine but Postgres in production
#### Q58. Which statement is most acurate, regarding using the default SQLite database on your local/development machine but Postgres in production

- [x] There's less chance of introducing bugs since SQLite already works out the box
- [ ] It's fine, you just need to keep both instances synchronized
- [ ] It's a bad idea and could lead to issues down the road
- [ ] It's the most efficient way to build a project

#### Q59. Why might you want to write a custom model Manager?

- [ ] to perform database queries
- [ ] to set up a database for testing
- [x] to modify the initial QuerySet that the Manager returns
- [ ] to filter the results that a database query returns

0 comments on commit ce58b93

Please sign in to comment.