March 2020
Intermediate to advanced
608 pages
17h 17m
English
Start by creating the music app from the Importing data from a local CSV file and Preparing paginated sitemaps for search engines recipes. Specifically, follow the steps in the Getting ready section to set up the models, forms, views, URL configurations, and templates.
To the view listing songs, we will add filtering by artist that later will be used by the RSS feed too:
# myproject/apps/music/forms.pyfrom django import formsfrom django.utils.translation import ugettext_lazy as _from .models import Song# …class SongFilterForm(forms.Form): def __init__(self, *args, **kwargs): super().__init__ ...