Any drawbacks to use too much javascript in a Django powered site?
I am new to Django framework. Now I am working on a website that powered
by Django on the backend, but since my unfamiliarity to Django, I did not
use a lot of "Django-style" front-end implementation.
Instead, I wrote a lot of Javascript code to retrieve Django page object
(which is passed in when calling render_to_response function or so), and I
almost did not use any Django-python script on the front-end. I wrote a
complete html code and load to browser at once, rather than use Django to
partially render the page components. I used regular HTML form than a
Django rendered form, and use a lot of ajax call to server, rather than a
Django-style submit.
I think what I am doing on the front-end is not taking any of the Django
advantages. I am not sure if this is OK too? Is there any advantages to
follow the Django style implementation? Is there any drawback on my
current work?
Thank you
No comments:
Post a Comment