Anyone knows if this exists vice-versa?
No one goes from Django to Rails...
Django for a Rails Developer
21–30 of 33 posts
Re: Django for a Rails Developer
#22Re: Django for a Rails Developer
#23I work with Django for a living but the lack of init/buildout in a new project has always driven me a bit nuts, I guess it's one of my development pet-peeves. I've never had project that didn't need: - a project-wide templates/ directory - media/[css|img|js] directories - some kind of database setup by default - contrib.admin (well, I created a form mailer once that had no admin) Django seems to take a "we don't want…
But if you think it's a problem, why not publish whatever you use and encourage others to use it as well?
(also, FWIW I don't have such a script -- a new site at work always simply inherits default settings from other stuff, and those defaults are set up to match how our production servers work)
Re: Django for a Rails Developer
#24Also note that the default Django template is showing it's age. I don't think it's ever been updated and it contains a few faux-pas to look out for. In particular, it starts you off inside a python package (__init__.py file), which is highly confusing. If you later want to treat your Django project as a normal Python project, you need to create a setup.py file. But this file would be one directory up from the project…
For stuff at work apps all go into one of a couple particular namespaces, so packaging concerns don't come up there; for my personal stuff the package name is almost never the same as the app anyway (e.g., django-registration provides an app in a module named 'registration').
Also, I'd really really like the concept of the project to die soon.
Re: Django for a Rails Developer
#25Re: Django for a Rails Developer
#26It's a different philosophy, but it's hard getting use to having to explicitly spell out everything when I just want to get going with defaults that make sense.
Re: Django for a Rails Developer
#27Re: Django for a Rails Developer
#28Re: Django for a Rails Developer
#29Seems like Django is more comparable to Sinatra? And is 4 spaces the python way? I like my font big and my lines short.
It is, see PEP 8: http://www.python.org/dev/peps/pep-0008/