On 3 déc, 21:30, Todd Blanchard <tblanch...@mac.com> wrote: > Models? Where do I find an example?
Of a model ? You must be joking ? > 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. Yeah, cool. I'm using Django since the first public release. So what ?-) > I have yet to see an instance of mapping a url to a model. Whoever talked of "mapping an url to a model" ??? It makes no sense. > 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). Yes, that an almost exact definition of a django "view" - except that it doesn't have to be a function - any callable will do. > What am I missing? You ask "what do apps beside provide views", I answer the questions: a django app (can) provide models, templatetags, filters, forms, fields, widgets, context processors, middlewares, and quite a few other things as well which are not necessarily django-specific. For the record, there are apps that don't provide any views by themselves. -- 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.