How to add styles to the generated html elements when using django models?
PHPz2017-05-24 11:37:17
It is not set in the models file, it is set when defining the form fields in the forms file
ringa_lee2017-05-24 11:37:17
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,