tag: model manager

  • AbstractUser vs AbstractBaseUser vs User extended profile in Django Part 2

    AbstractUser vs AbstractBaseUser vs User extended profile in Django Part 2

    Maria D. Campbell

    A step-by-step walkthrough of building a custom Django user model using AbstractUser, including a custom manager, tests-first setup, migrations, and admin configuration.

    #fullstack development, #macOS, #django, #python3, #abstractuser, #admin, #forms, #model manager, #tests, #unittest, #user model, #schema, #series, #superuser

  • AbstractUser vs AbstractBaseUser vs User extended profile in Django Table of Contents

    AbstractUser vs AbstractBaseUser vs User extended profile in Django Table of Contents

    Maria D. Campbell

    A table of contents for my series on Django's AbstractUser, AbstractBaseUser, and extended User profile approaches — covering custom user models, migrations, forms, admin configuration, and testing.

    #fullstack development, #macOS, #django, #python3, #abstractuser, #abstractbaseuser, #admin, #forms, #model manager, #tests, #unittest, #user model, #schema, #series, #superuser

  • AbstractUser vs AbstractBaseUser vs User extended profile in Django Part 1

    AbstractUser vs AbstractBaseUser vs User extended profile in Django Part 1

    Maria D. Campbell

    A test-driven walkthrough of building a custom user model with AbstractBaseUser in Django, including the model manager, migrations, forms, and admin configuration.

    #fullstack development, #macOS, #django, #python3, #abstractbaseuser, #admin, #forms, #model manager, #tests, #unittest, #user model, #schema, #series, #superuser

  • Creating the official Django Polls app Part 3

    Creating the official Django Polls app Part 3

    Maria D. campbell

    In this section, we write our first Django app, discuss URL patterns, write more views in polls/views.py, write views that actually work, re-write the index view, create a templates directory in the polls directory, implement template namespacing, add Django code to index.html, update the index view to use the new index.html template, implement the render() shortcut, implement raising a 404 error in the detail view, use get_object_or_404() in the detail view, discuss Model's manager in Django, discuss Manager names, use template tags in the template engining system, remove the hardcoded URL in the template in polls/index.html, and namespace our URL names.

    #fullstack development, #macOS, #django, #python3, #404, #model manager, #render shortcut, #series, #templates, #template namespacing, #tutorial, #urlpatterns, #views

  • How to create a fullstack application using Django and Python Part 7

    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