Skip to content
Advertisement

How to format dynamically generated HTML with django

I’m trying to create a sheet of labels to print out with a QR code a logo and phone number, the QR codes are generated separately from an xlsx file and they work. My issue is formatting them in the HTML. I’m not sure how to change the for loop so it creates a row for each time an image is loaded onto the label. here’s the html part of the code:

JavaScript

Advertisement

Answer

After much trial and error i figured out the issues. Heres the code formatted to fix and Avery 61523 sheet in case anyone might find it useful in the future.

JavaScript

I used word to generate a label page and then converted it into HTML format and edited it into the sized needed.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement