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. |
| 49 | Now 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. |