davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
322 stars 54 forks source link

Adding images to the page #30

Closed augisbud closed 5 years ago

augisbud commented 5 years ago

Hello, I want to add a background image, however I found that i need to add something in the comitupweb.py file, something like this @app.route('/css/<path:path>') def send_css(path): return send_from_directory('templates/css', path) how do i add an image, for eg. bg.png

davesteele commented 5 years ago

I'm afraid that is going to remain an exercise for the student for at least a while.

augisbud commented 5 years ago
    @app.route('/img/<path:path>')
    def send_img(path):
        return send_from_directory('templates/img', path)

This worked for me