<aside> <img src="/icons/cards_gray.svg" alt="/icons/cards_gray.svg" width="40px" /> Pages
All about Django Logger | Very Important concept for Django Developers | Django Logger tutorial
Class-Based Views Tutorial Series
</aside>
<aside> <img src="/icons/playback-play_gray.svg" alt="/icons/playback-play_gray.svg" width="40px" /> Getting Started
</aside>
<aside> <img src="/icons/computer_gray.svg" alt="/icons/computer_gray.svg" width="40px" /> Front End
</aside>
<aside> <img src="/icons/server_gray.svg" alt="/icons/server_gray.svg" width="40px" /> Back End
</aside>
<aside> ⛔ Examples
</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 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
Paginator Object in Detail