django flag for mobile request? -
I have to be a flag variable to test the mobile page in the digengo.
We currently need it to use the flag on both Dragon View, Django templates, Javascript, handler templates.
Something like this might be done, like something like We only provide some pages for mobile and PC To distribute separately. (Most pages are covered by bootstrap fluid) How can we set a variable to switch / switch on mobile? Try it, Page.html: {% if_testing_mobile%}. {% Endif%}
import
{% if_mobile%} presents mobile CSS {% else%} then PC CSS {% endif%}
Comments
Post a Comment