tag: generic class based views

  • Creating the official Django Polls app Part 4

    Creating the official Django Polls app Part 4

    Maria D. Campbell

    This is the fourth installment in a series called Creating the official Django Polls app. Continue following this series with this fourth part. Learn how to add a minimal form to your HTML template, update a function based view, refactor urls.py to match generic views, and install djLint to format your Django templates.

    #fullstack development, #macOS, #djlint, #forms, #function-based views, #generic class based views, #series, #tutorial

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

    How to create a fullstack application using Django and Python Part 23

    Maria D. Campbell

    In this section, I create a generic class based view called UserUpdateView (My Account view), associated tests, a URL, and template.

    #fullstack development, #macOS, #django, #generic class based views, #python3, #series, #tests, #unittest

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

    How to create a fullstack application using Django and Python Part 21

    Maria D. Campbell

    In this section, I create a generic class-based (GCBV) PostUpdateView, PostDeleteView, and PostDetailView, and associated urls and templates. I also create the PostUpdateView, PostDeleteView, and PostDetailView tests, and debug the code and tests. Lastly, I check the test coverage of the django_boards project code.

    #fullstack development, #macOS, #coverage, #context, #dispatch, #django, #python3, #generic class based views, #method decorators, #series, #tests, #unittest

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

    How to create a fullstack application using Django and Python Part 22

    Maria D. Campbell

    In this section, I implement a Generic Class Based View and pagination to the index/home view, add pagination to the topics view and topic_posts view, and add pagination to the associated templates. I refactor the associated urls in urls.py, and refactor the associated tests. I also add a copy link button to copy the link to a topic's replies, a scroll top and scroll bottom button using JavaScript to enable their functionality, and JavaScript code to make the scrollbar return to the bottom of the page when a pagination item is clicked.

    #fullstack development, #macOS, #django, #bootstrap pagination, #code refactoring, #clipboard api, #generic class based views, #python3, #scroll behavior, #series, #tests, #unittest