我正在使用Responder(https://python-responder.org/en/latest/),并且试图从Flask替换它。 有没有办法限制Flask这样的HTTP方法?
示例(烧瓶):
from django.db import models
from django.contrib.auth.models import User
class Post(models.Model):
title = models.CharField(max_length=)
author = models.ForeignKey(
User,
on_delete=models.CASCADE,
)
body = models.TextField()
def __str__(self):
return self.title
谢谢