I am obtaining the path of template using
paymenthtml = os.path.join(os.path.dirname(__file__), 'template\\payment.html')
and calling it in another application where paymenthtml gets copied to payment_template
return render_to_response(self.payment_template, self.context, RequestContext(self.request))
But I get error
TemplateDoesNotExist at /test-payment-url/
E:\testapp\template\payment.html
Why is the error coming?
Edit : I have made following change in settings.py and it is able to find the template, but i cannot hardcode the path in production, any clue?
TEMPLATE_DIRS = ("E:/testapp" )