Friday, November 7, 2014

Re: New to Django question about using it without ORM

On 11/08/2014 01:44 AM, Andreas Kuhne wrote:
A couple of your questions answered: 1. You don't need to use Django's
ORM, but you will not be able to use certain features, for example the
model based class based views (ListView, DetailView, UpdateView). 2. To
use djangos views and templates, you should really first understand
Djangos MVC philosophy. In the view you should get all of the items you
want to show to the user and make the template as "dumb" as possible. It
should ideally not have any advanced logic in it (think of dumb HTML).
Yes I am aware of this philosophy. Infact I have all my core business
logic in my xmlrpc service based engine which is actually the real software.
Thus my views will only query the APIS (getters and setters etc) and
either send data to the templates or get data from templates and send to
the core rpc engine.
SO I wonder for such a minimalistic middle layer logic, do I need a lot
of special features of views?
3. No comment on the forms (haven't used them), but it shouldn't be that
hard to implement. 4. The difference between Python 2 and Python 3 has
been easier from version 3 to version 2. I don't think you will have
that much problems using python 2 instead of python 3 in the tutorials.
And if you do, it shouldn't be that hard to fix. Django 1.7 requires at
least version 2.7 though.
yes I do work with only Python 2.7.
The only thing I am not understanding is that in the tutorial it says
"if you are still using Python 2.7 you will need some changes in the
code, for more details see the comments ".
I did not say any special comments so far.
Can you please tell me which things should I look out as pitfalls.
And except the migrate system instead of syncdb, do we have some other
things which are fundamentally different from Django 1.6?
happy hacking.
Krishnakant.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/545D2B56.1000304%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment