tag: queryset

How to create a fullstack application using Django and Python Part 19
Maria D. Campbell
In this section, I implement protecting views, I configure the Login next redirect, I create @login_required tests, I update the topic posts view, create the topic_posts.html template and related tests, update the reply post (reply_topic) view and create related tests, discuss QuerySets and use them to improve the index/home view, improve the topics view, update the board_topics view, update the topics.html template, and add a new field to the Topic model.
#fullstack development, #macOS, #django, #annotate, #next, #protecting views, #python3, #queryset, #series, #tests, #unittest
How to create a fullstack application using Django and Python Part 7
Maria D. Campbell
In this section, I discuss the Django model basics, I compare the UML Class Fields Diagram to the models.py source code, I migrate the models with the makemigrations command, apply the model migrations with the migrate command, play with the Models API, and discuss the Django Model manager.
#macOS, #django, #fullstack development, #makemigrations, #migrate, #model operations, #model manager, #python3, #python shell, #queryset, #series