I want to save a file in database instead of uploading it to a server media file and save URL in Database, I want directly save file in the Database.
Right now I am doing this:
model.py:
File = models.FileField(upload_to='CSR/', null=True , blank = True)
template.html:
<td> {{certificate.File.url}} </td>