remove - jquery name csrfmiddlewaretoken
Django+GWT or Jquery (6)
The alternative I considering is using the Django template system to render my pages with some Jquery UI plugins and the method suggested in this post to retriving html data without deal with JSON objects because I think that dealing with it is a nightmare because in my structure when the data changes also the interface could be drammatically change.
What is yuor approach on this issue?
Talking about reliability, scabability and compatibility, you can check some of our important projects in production today.
For more info, don't hesitate to ask and share your experiences with us.
Have you considered pyjamas?
For me, it's the best of both worlds. You use, as usual, the Django back-end but can easily use JSON RPC services from your pyjamas code.
You code the front-end pretty much like in GWT, but in Python instead of Java.
Here is a brief tutorial: http://gdwarner.blogspot.com/2008/10/brief-pyjamas-django-tutorial.html
My code generator looks at the models.py file and rips out all of the pertinent fields before plopping them into the .java files for GWT. Once you have this, implementing your new objects is pretty easy.
In my Django/GWT project I do use django-piston to expose Django models via REST API, in JSON format. Look at piston's website for more on how to achieve that http://bitbucket.org/jespern/django-piston/wiki/Home.
Then, on GWT side, you only need to create overlay types for your Django models (DevGuideCodingBasicsOverlay).
I use gwt-dispatch (http://code.google.com/p/gwt-dispatch/) with some REST goodness added to fetch my models from Django backend, but you can use you whatever you want (
HttpRequestBuilder), then use GWT
JSONParser, and by getting
How to use Django with GWT?
If you want to create a new model, both in GWT and in Django, the easiest way to generate code is to start from a very simple model definition, e.g.
classname attribute1 type1 attribute2 type2
Parsing that with a little Python is very easy, and so is generating code for both Django and GWT once you parsed the above-like lines. Customization for both Django and GWT will take only a little more work. Taking foreign keys into account is more complicated. Don't forget a tiny little generated method to serialize the objects, e.g. in JSON format.
The first reflex I had was to use introspection in Python, but then I ran into trouble when introspecting foreign key fields in django models. Maybe I should take a look at the code of the django-docs project (available at google code).
Finally, to speed up your GWT+Django development, you can use a http proxy servlet in hosted mode, so that you don't need to compile your GWT stuff every time you want to run your GWT front end with a Django back end. The servlet on http://www.servletsuite.com/servlets/httpproxy.htm will probably do the trick.
I'm trying to pick a framework for a product I'm about to build, and so far I'm leaning toward Nagare… Any thoughts?
This should have you a social network up & running within a day or two.