How to add styles to the generated html elements when using django models?
It is not set in the models file, it is set when defining the form fields in the forms file
You need to pass the model to templates in the view function, apply css js in templates, etc. You can first read the official document for the building steps, there is a Chinese translation of 1.8,
It is not set in the models file, it is set when defining the form fields in the forms file
You need to pass the model to templates in the view function, apply css js in templates, etc. You can first read the official document for the building steps, there is a Chinese translation of 1.8,