Changes between Version 2 and Version 3 of Barcodes


Ignore:
Timestamp:
Jun 8, 2011, 8:14:11 AM (13 years ago)
Author:
tturner
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Barcodes

    v2 v3  
    4747= Integrating into Django =
    4848
    49 Now we add a view to our ''views.py''.  This will examine the request
    50 for any dynamic parameters, since there's not much point serving
    51 a chart that doesn't vary.  We'll allow the user to pass in 4
    52 things as GET or POST parameters:  a title, a comma-separated list of numbers,
    53 and the overall width and height of the image.  Everything has a default in
    54 our Drawing class anyway, so we only pass through parameters which are
    55 present.
     49Now we add a view to our ''views.py''. At the moment this function will print a barcode with hello world on it. You can modify this view function so it passes the text you want to print on the barcode.
    5650
    5751You then ask the Drawing to render itself to your favourite bitmap format
Back to Top