If you have some DB model where is the data saved, you can do this

from project.app.models import NameOfModel

# try this, but if it will not work, look at django models help
filtered_data = NameOfModel.objects.filter(job_id___gt=29).filter(job_id__lt=401)

for d in filtered_data:

    print d   # this just prints it to stdout


If you want to make some printing app, I suggest creating simple template with only the data you want printed, and create some view for it that would do something like I've written above
and just print it from browser ... easiest way

Lukas


On 07/17/2013 07:14 AM, Harjot Mann wrote:
In my project the lab reports, reciepts, and bills are made from html
templates but thse are not saved anywhere but now I need to take the
print outs of all the reports which are made till now for example form
job_id 30 to 400. I want to make function for this so that it can be
done in a one script. Anyone having idea that how can I do this?/

--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to