Hey guys, Think this would be a neat feature to add to django. {% if request.connection %} #if there's a connection to the internet returns True, by default tries to connect to google {% else %} #could for example load local js/css files instead of from cdn {% endif %}
primarily could be used to check if a site/link you really for service is operational before moving forward {% if request.connection:"http://www.somesite/service" %} #load js and present service {% else %} <p>Sorry the service seems to be unavailable for now, please try again later.</p> {% endif %} -- Best Regards, Samuel Muiruri. Student in Machine Learning & a veteran web developer. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJZFZXpYyXd4gdEPFrS9FS3ngHR%3D0fHg1imxBGBN5tOxj_PM5w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.