On Thu, Dec 3, 2009 at 3:30 PM, Todd Blanchard <tblanch...@mac.com> wrote: > I've got Pro Django, Definitive Guide to Django, Python Essential Reference, > and I've read the online django tutorial and a bunch of random docs. I have > yet to see an instance of mapping a url to a model.
models are specific to an app; therefore an app 'provides' models to the whole project. it's not rare for an app to define very complex and useful models and not views. > Or, I don't know what you mean by model vs view (because when I say view - I > mean just a function that takes a request, returns a response, and lives in a > file called views.py). there's no "model vs. view" thing, just that views should have relatively simple logic. most of the processing should be done in the models definition. a view should handle only the HTTP <=> model interface -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.