python - django models add styles to generated html elements.
巴扎黑
巴扎黑 2017-05-24 11:35:17
0
2
608

How to add styles to the generated html elements when using django models?

巴扎黑
巴扎黑

reply all(2)
PHPzhong

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,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template