I'm a newbie on django framework working on a Django bootcamp project.
I created an about app using '''django-admin startapp about
''' which is supposed to hold static web page like about us, service, faq, contact us, terms and condition, privacy etc and most importantly homepage. It is suppose to have an API How do I go about it?
I was thinking of creating the following model
class Page(models.model):
title = models.CharField(max_length=200)
slug = models.SlugField(autoslug=True)
body = models.TextField()
`
for the serializer something like this:
class PageSerializer(serializer.modelSerializer):
title = serializer.CharField(max_length=200)
slug = serialzier.SlugField(autoslug=True)
body = serializer.TextField()
`
I don't know how to go about with the views to perform crud operations