tag: generic class based views

  • Creating the official Django Polls app Part 4

    Creating the official Django Polls app Part 4

    Maria D. Campbell

    In this section, we add a minimal form to our polls.detail.html template, update the function based vote view, create a polls/results.html template, refactor our polls/urls.py to match the new generic views, and install DJLint to format our 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, create the associated urls and templates, create PostUpdateView, PostDeleteView, and PostDetailView tests, debug the code and tests, and 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, add pagination to the associated templates, 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 add 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