How to use change_form.html template in django?

I have my models and I would like to use the Django change template to edit my data. Currently I have created my own template that works great, but is missing some of the basic stuff that the change_form template might have, such as field validations.

Please provide examples showing how I can call the template from my view and what object variables need to be sent to the template.

Pointers to external projects / links that use these templates would be much appreciated.

0


source to share


2 answers


I think Geth wanted this: http://www.ibm.com/developerworks/opensource/library/os-django-admin/index.html#N1012A



I know it's late, but for sure, might be useful for someone else!;)

+1


source


The only change_form.html template I know of is in the Django admin app. You are not using the template directly, you need to configure the admin application to edit your data. To do this, follow the steps in the documentation . If you have problems, please submit those problems as separate, specific questions.



0


source







All Articles