Hi,

I've used Ruby on Rails and CakePHP and am considering using Django
for my next site coz I'm intrigued by Python. I have a few questions
that I couldn't find the answer to in the docs:

1) Does your webhost need to support Django specifically or is it
sufficient if they support Python? (e.g. with CakePHP you just need
general PHP support).

2) I want to use raw sql for all my select queries (to have 100%
control and because I don't see the point of learning another query
language - I do like ORM to insert/update records from a form). Can I
use multiline strings? Not sure because of the python empty space
thing, and the examples in the documentation are all on one line. E.g.
in PHP I do something like the following, which I can copy/paste
straight into my db tools.

$qry = "
  SELECT *
  FROM table1
  LEFT JOIN table2 ON ...
  WHERE ...
  ORDER BY
  LIMIT
"

3) Would django return the results of a query like this line by line,
or does it process it. In Cake the fields from table1 and table2 get
put in separate sub-arrays, which I like.

4) I read somewhere in the documentation that you can use other
templating systems than Django's own. Is it also possible to just use
Python inside the views?

Tia for any answers.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to