I found a very simple solution using Grunt and a browser extension:

https://github.com/sinnwerkstatt/sinnwerkstatt-web/blob/master/Django-livereload.md
http://stackoverflow.com/a/20135843/2510374

Nikolay

On Monday, November 18, 2013 11:12:26 AM UTC+1, Elyézer Rezende wrote:
>
> On Fri, Nov 15, 2013 at 1:32 PM, charettes <[email protected]<javascript:>
> > wrote:
>
>> Hi Nikolay,
>>
>> You could implement such a feature as a third party app by connecting a 
>> receiver to the 
>> template_rendered<https://www.google.com/url?q=https%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.6%2Fref%2Fsignals%2F%23template-rendered&sa=D&sntz=1&usg=AFQjCNFz1Y29_V9ePu1Ni6OFHTcTnIAOdw>signal.
>>
>
> To do a live reload the tool need to know when the template in filesystem 
> is updated, then using template_rendered will not help because need to make 
> a request and the live reload is to automatically do that request when some 
> file is updated.
>
> I don't know if will be possible to add that to django itself, but I think 
> that using some tool like watchdog [1] could help doing that.
>
> Other idea is to override the development server command to monitor the 
> changes to templates files. 
>
> [1] 
> https://pypi.python.org/pypi/watchdog<https://www.google.com/url?q=https%3A%2F%2Fpypi.python.org%2Fpypi%2Fwatchdog&sa=D&sntz=1&usg=AFQjCNENnqXOTcBzH7Mv7NpwZEKqSMYVSA>
>
> -- 
> Elyézer Rezende
> http://elyezer.com<http://www.google.com/url?q=http%3A%2F%2Felyezer.com&sa=D&sntz=1&usg=AFQjCNHb7846dW1e8Xj8GTwH1ziOAB5Xhg>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/8a921146-3ace-4f9f-a9e5-6db687a915dc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to