<aside> <img src="/icons/cards_gray.svg" alt="/icons/cards_gray.svg" width="40px" /> Pages

Django Rest Framework

Miscellaneous Tutorials

All about Django Logger | Very Important concept for Django Developers | Django Logger tutorial

Django Unicorn Package

Django User Management

Class-Based Views Tutorial Series

Crispy Forms 2022

Wagtail CMS

Unicorn Get Started

</aside>

<aside> <img src="/icons/playback-play_gray.svg" alt="/icons/playback-play_gray.svg" width="40px" /> Getting Started

Starting Instructions

Terminal Commands

File Structure

</aside>

<aside> <img src="/icons/computer_gray.svg" alt="/icons/computer_gray.svg" width="40px" /> Front End

Views

Class-Based Views

Using Python Variables and Logic in HTML

HTML Inheritance Blocks

Static Files

as_view

</aside>

<aside> <img src="/icons/server_gray.svg" alt="/icons/server_gray.svg" width="40px" /> Back End

Migrations

Databases

Post_set

Models

ModelForm

Form in HTML

Import to Shell

Create a new foreign key relation

OneToOneField

Post Requests

admin.site.register()

Signals

Linking Fields

</aside>

<aside> ⛔ Examples

A Textbook model using JSON to store chapters, parts, paragraphs, and questions might look something like this:

To show the Textbook model data to a webpage, one part at a time, you could use Django views and templates to build the webpage.

To call a Python function from a button on a web page, you can use Django forms and views.

</aside>

<aside> ⛔ Errors

django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited

Reverse for 'text_gen' not found. 'text_gen' is not a valid view function or pattern name.

</aside>

The code above filters the User model to retrieve the first user with the username 'mathew', then accesses that user's profile, and finally accesses the image field of that profile.

The code above filters the User model to retrieve the first user with the username 'mathew', then accesses that user's profile, and finally accesses the image field of that profile.

The code above defines a home view function that renders a template for a list of blog posts and a PostListView class that displays a list of blog posts using a template.

The code above defines a home view function that renders a template for a list of blog posts and a PostListView class that displays a list of blog posts using a template.

Defining a URL with a custom class-based-view

Defining a URL with a custom class-based-view

Paginator Object in Detail

Paginator Object in Detail