How could I append the file name with other characters, before the extension.
For example, I have
f = open ('text.txt', 'r')
Desired output: g = ('text_done.txt')
How could I append the file name with other characters, before the extension.
For example, I have
f = open ('text.txt', 'r')
Desired output: g = ('text_done.txt')
you can import os on django in order to manipulate the file name. something like this
import os
os.rename(r'text.txt',r'text_done.txt')