noraj
In `config.py` if I change `cdn = True` to `cdn = False` there is no more CSS. In fact: + `/static/materialize.min.css` + `/static/icons.css` + `/static/vis.min.css` are not found. CSS should be loaded but is not in the repository with other static contents. ``` $ grep -r materialize ./ ./templates/admin/ticket_detail.html: <textarea id="comment" name="comment" class="materialize-textarea"></textarea> ./templates/admin/base.html: <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css" /> ./templates/admin/base.html: <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='materialize.min.css') }}" /> ./templates/admin/base.html: <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/js/materialize.min.js"></script> ./templates/admin/base.html: <script src="{{ url_for('static', filename='materialize.min.js') }}"></script> ./templates/tickets/ticket_detail.html: <textarea id="comment" name="comment" class="materialize-textarea"></textarea> ./templates/tickets/open_ticket.html: <textarea required id="description" name="description" class="materialize-textarea"></textarea> ./templates/base.html: <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css" /> ./templates/base.html: <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='materialize.min.css') }}" /> ./templates/base.html: <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/js/materialize.min.js"></script> ./templates/base.html: <script src="{{ url_for('static', filename='materialize.min.js') }}"></script> $ grep -r vis.min.css ./ ./templates/admin/base.html: <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.9.0/vis.min.css" /> ./templates/admin/base.html: <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='vis.min.css') }}" /> ./templates/base.html: <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.9.0/vis.min.css" /> ./templates/base.html: <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='vis.min.css') }}" /> ``` So you may add them in `static/css`. Also I find weird the difference between CDN mode: ```html <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css" /> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.9.0/vis.min.css" /> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> <link rel="stylesheet" type="text/css" href="/static/css/main.css" /> ``` and without CDN: ```html <link rel="stylesheet" type="text/css" href="/static/materialize.min.css" /> <link rel="stylesheet" type="text/css" href="/static/icons.css" /> <link rel="stylesheet" type="text/css" href="/static/css/flag-icon.min.css" /> <link rel="stylesheet" type="text/css" href="/static/vis.min.css" /> <link rel="stylesheet" type="text/css" href="/static/css/main.css" /> ``` There should be icons.css and flag-icon.min.css in CDN mode and the Material Icons familly when without CDN. Why are they not the same ?