updated generate_pdf(..) with reading lang code from django settings