您好我正在处理 Django 项目,但无法提供Inline课程。如何在基于类的视图窗体中应用CSS类。
这是我的代码:
class Book(models.Model):
title = models.CharField(max_length=200)
message = models.CharField(max_length=200)
url = models.CharField(max_length=200)
category = models.CharField(max_length=200)
stores = models.CharField(max_length=200)
brands = models.CharField(max_length=200)
dealtype = models.CharField(max_length=200)
feature = models.CharField(max_length=200)
tag = models.CharField(max_length=200)
答案 0 :(得分:0)
forms.py
from django import forms
class ContactForm(forms.Form):
name = forms.CharField()
message = forms.CharField(widget=forms.Textarea)
def send_email(self):
# send email using the self.cleaned_data dictionary
pass