Closed brucestull closed 2 years ago
Need to decide when to load these and what other links need to be cleared.
This change may end up being superseded by https://github.com/brucestull/technology-and-perceptibility/issues/217. We'll keep the branch for now and continue the changes as a learning exercise.
Using vanilla Django:
views.py
from .models import Chirp
class ChirpListView(ListView):
"""
Inherits 'ListView'. View is used to list the Chirps. We can use 'chirp_list' and 'object_list' to get the queryset in the list template.
"""
model = Chirp
template_name = 'home.html'
urls.py
from . import views
app_name = 'chirps'
urlpatterns = [
...
path('', views.ChirpListView.as_view(), name='home'),
...
]
Had some issues with migrations on branch for https://github.com/brucestull/technology-and-perceptibility/issues/206.
Issues were caused by merge conflict when merging main into the feature branch.
Creating this new Issue to implement the functionality.