I want to use the django template to process a text file and tried this:
from django.template import loader, Context
t = loader.get_template('my_template.txt')
however, it works for this:
from django.template import loader, Context
t = loader.get_template('my_template.html')
Can we upload txt files using the django template loader? as?
thank.
source
share