Why You Should Try Django
fiveandlime.com
fiveandlime.com
"No need to know any SQL".
This seems very wrong to me.
The Django data model is just a light abstraction over the fundamental model of tables and relationships. If you learned how to work with Django models then you would know the logical constructs of SQL, just not the syntax.
Django models are no easier or harder to think about than SQL (just there is less code to write and maintain because the boilerplate is done for you). It is not a quick fix for an inability to master the basics.
True. In general, there are few quick fixes that get you out of having to master the basics. If you don't know what you're doing, it'll probably rebound on you.
And it's not as if the ideas behind relational databases are hard, in any case.
personally, not having to deal with SQL is actually a plus
I wish someone had written a comprehensive comparison of Django and RoR. There were some attempts, but people involved inevitably happen to be much more familiar (and efficient) with one framework than the other. Therefore every comparison I've seen to date was heavily biased.
I do like rails DB layer a lot better than django's although. You can do a bit more with it schema evolution/definition is a lot easier/cleaner.
I would personally sacrifice magic in favor of creating my own.
Whilst in web.py you pretty much code in Python which in my opinion is a lot easier to do. In addition to that web.py is pretty transparent providing me a sense of how _everything_ is working together.
class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
Maybe I am just in a bad mood, but that doesn't look very elegant to me :-( Somehow I struggle with Rails, but I guess there would be no point for me to try Django instead.But in #10, i think that "Can deploy on _SOME_ shared hosting" would be more accurate (For example you can install it on Dreamhost shared hosting, but it's more of a hack). And installing MySQL-Python library can be a bit tricky if you are new to compiling your own stuff.
Instead, sudo apt-get install python-mysqldb
See: http://diveintomark.org/archives/2007/11/11/installing-mysql...
[edit: I know you are talking about shared hosting plans, which are a different beast, but the general rule that you shouldn't compile your own stuff is still valid.]
Plus, Python syntax is so...pretty.
autocmd FileType python set omnifunc=pythoncomplete#Complete
inoremap <Nul> <C-x><C-o>
syntax on
set tabstop=4
set expandtab
set softtabstop=4
set shiftwidth=4
set autoindent
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class