How to read, append and override save method in django model?

Submitted 1 month, 2 weeks ago
Ticket #437
Views 46
Language Django
Priority Medium
Status In-Progress

I have a Django model where there is FileField to upload files. I want to upload the files in the templates directory under the XML folder but before saving the files there I want the file open and add the following line of code in each and every file before <TEI> tags and save in the templates directory under the XML folder. So can anyone help me to read , append and override save method in Django model?
 

<?xml-stylesheet type="text/xsl" href="teibp.xsl"?>

Submitted on Oct 16, 21

is this issue has been addressed? - arun 1 month, 1 week ago
add a comment


Wanna Post Ad?
Reach a large group of audience by posting an ad about your business here. For more details
Drop us a Message