Python django cms在管理面板中添加自己的模型

Python django cms在管理面板中添加自己的模型,python,django,django-admin,Python,Django,Django Admin,我制作了一个名为“定价”的新应用程序(manage.py startapp pricing)。 前端工作正常。现在我想在我的django cms管理员中添加一个额外的字段,用户可以在这个应用程序的Db中存储、更改和添加新值。 用几句话:我想注册模型从我的应用程序到django cms管理员。我希望它出现在管理页面的底部 mycms: mysite static templates **pricing(my app) templates

我制作了一个名为“定价”的新应用程序(
manage.py startapp pricing
)。 前端工作正常。现在我想在我的django cms管理员中添加一个额外的字段,用户可以在这个应用程序的Db中存储、更改和添加新值。 用几句话:我想注册模型从我的应用程序到django cms管理员。我希望它出现在管理页面的底部

mycms:
   mysite
    static
    templates
    **pricing(my app)
        templates
        admin.py
        models.py
        test.py
        views.py**
    cms_plugins.py
    forms.py
    models.py
    settings.oy
    urls.py
    views.py
定价应用程序

models.py
from django.db import models

# Create your models here.
class Post(models.Model):
    introduction = models.CharField(max_length=200)
    offer_option = models.TextField()
    prop_one = models.TextField()
    prop_two = models.TextField()
    prop_three = models.TextField()
    price = models.TextField()
    period =  models.TextField()

    def __str__(self):
        return self.offer_option
views.py

from django.shortcuts import render 
from django.utils import timezone from .models import Post

def post_list(request):
    posts = Post.objects.all()
    return render(request, 'post_list.html', {'posts': posts})
from django.contrib import admin

# Register your models hefrom django.contrib import admin
from .models import Post

admin.site.register(Post)
admin.py

from django.shortcuts import render 
from django.utils import timezone from .models import Post

def post_list(request):
    posts = Post.objects.all()
    return render(request, 'post_list.html', {'posts': posts})
from django.contrib import admin

# Register your models hefrom django.contrib import admin
from .models import Post

admin.site.register(Post)