Re: A sample project showing server side rendering with React and Django

2015-01-27 Thread Ustun Ozgur
rver-side rendering of React templates (which I will try avoid in the > beginning stages, anyway), I can skip node.js. > > Learning React is on my todo list. Then I'll need to dig deeper. I suppose > then I might change my mind...;-) > > On Monday, January 26, 2015 at 10:14:33

Re: A sample project showing server side rendering with React and Django

2015-01-26 Thread Ustun Ozgur
ects, that's not an option. Besides that, I believe that outside templating system, remaining parts of Django (models, managers etc) are solid, so I still prefer that as opposed to a node.js solution. But that's clearly a personal preference. Ustun > > On Sunday, January 25, 2

Re: A sample project showing server side rendering with React and Django

2015-01-25 Thread Ustun Ozgur
ing. Best, Üstün > > > On Saturday, January 24, 2015 at 7:13:56 AM UTC-6, Ustun Ozgur wrote: >> >> Last year I gave a conference talk at Djangocon EU where I introduced >> React.js to the community. Since then, I have been getting some emails >> asking for some sample code.

A sample project showing server side rendering with React and Django

2015-01-24 Thread Ustun Ozgur
Last year I gave a conference talk at Djangocon EU where I introduced React.js to the community. Since then, I have been getting some emails asking for some sample code. I just published a sample project that simply uses a node.js server to delegate server side rendering from Django. Hope that

Appending trailing slashes to jQuery Ajax requests automatically

2014-10-14 Thread Ustun Ozgur
I have published a small snippet at https://github.com/ustun/ensure-trailing-slash-for-jquery-ajax/blob/master/ensure_slash.js that automatically adds a trailing slash to every outgoing AJAX request so as to minimize accidental redirects. Best, Ustun (Inspired by

Re: Django Caching appended character issue

2012-01-31 Thread Ustun Ozgur
No idea actually, but I would look for BOM related issues. Ustun -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/YpAgjT_A98MJ. To post to this group, send

Re: Displaying template location in html

2012-01-31 Thread Ustun Ozgur
+1 for debug toolbar. If you choose to do it manually though, you can make use of a middleware instead of passing templates in each view function explicitly, as shown here: http://djangosnippets.org/snippets/766/ Ustun -- You received this message because you are subscribed to the Google