hello again, sorry for eventually annoying. But later in the Django tutorial,
there is this code: from django.conf.urls import patterns, include, url ..................................... urlpatterns = patterns('', (r'^polls/$', 'polls.views.index'), ......................)), ) What I understand here is that "patterns", "include" and "url" modules are imported. After the result of the function "patterns" is assigned to "urlpatterns". AS Daniel said that a function can't be imported, this means that a method can be called (but not imported) or this means that a function and a method are not the same thing ? Regards Alain On 17 oct, 08:53, Webb Newbie <new...@avatarific.com> wrote: > "models" is a module that contains classes Model and CharField. > > Person inherits from Model. > > first_name and last_name are instances of CharField. > > There's no functional programming here. > > -WN. > > > > > > > > On Sun, Oct 16, 2011 at 6:43 PM, youpsla <youp...@gmail.com> wrote: > > 1 from django.db import models > > 2 > > 3 class Person(models.Model): > > 4 first_name = models.CharField(max_length=30) > > 5 last_name = models.CharField(max_length=30) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.