models.py
class Feed(models.Model):
title = models.CharField(max_length=150, null=False, blank=False)
class Meta:
verbose_name = "Feed"
verbose_name_plural = "Feeds"
def __str__(self):
return self.title
admin.py
from django.contrib import admin
from .models import Feed
admin.site.register(Feed)
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'gomaths',
]