crm注册 crm注册Form from django import forms from crm import models from django.core.exceptions import ValidationError # ModelForm的作用:做验证,生成form表单input框 class BaseForm(forms.ModelForm): # 给所有的字段添加属性 def __init__(self, *args, **kwargs): super().__init__(*…
Django运行访问项目出现的问题:DisallowedHost at / Invalid HTTP_HOST header: DisallowedHost at / Invalid HTTP_HOST header: '10.211.55.6:8000'. You may need to add u'10.211.55.6' to ALLOWED_HOSTS. Request Method:GET Request URL:http://10.211.55.6:8000/ Django Ve…