I have some views that require internet to work.I want to restrict access to all my views if there is no internet connection when i run locally. How can i do this ?
Asked
Active
Viewed 200 times
0
-
3Um. How will your website work at all if there is no internet? – Daniel Roseman Jan 13 '15 at 15:15
-
Are you maybe asking how to do something client side if there's no internet? Or is this some kind of proxy system? A bit more detail would help the question make sense. – dylrei Jan 13 '15 at 15:39
-
Im running it locally. So it runs anyway – Dhanya M Jan 13 '15 at 16:05
-
@DhanyaM OK. See: http://stackoverflow.com/questions/3764291/checking-network-connection – dylrei Jan 13 '15 at 16:24
-
I don't practically need a function. I wannt it to be done when i start my local server – Dhanya M Jan 13 '15 at 16:42
1 Answers
0
You can try some django package to work with html5 offline capabilities: https://www.djangopackages.com/grids/g/offline/
HTML5 allows some offline features, never used it thought: http://diveintohtml5.info/offline.html
But it's what allows some Google Apps to work offline.

dfranca
- 5,156
- 2
- 32
- 60