You could configure your text editor to insert a starting model class.

class Modelname(models.Model):
    """Modelname description"""
    name = models.CharField(max_length=256)
    def __unicode__(self):
        return u"%s" % (self.name,)


On Mon, Nov 15, 2010 at 09:57, James <asnark....@gmail.com> wrote:
> On Mon, Nov 15, 2010 at 7:48 AM, bruno desthuilliers
> <bruno.desthuilli...@gmail.com> wrote:
>> On Nov 14, 8:20 am, James <asnark....@gmail.com> wrote:
>>> Forgive a django newbie...
>>>
>>> Maybe I'm the laziest person in the world, but sometimes I get tired
>>> of typing "models.WhatEver" for every single model I have to write. Is
>>> there anyway a shortcut could be added that would 'assume' the
>>> 'models.' prefix when I am defining a model?
>>>
>> Others already answered this question. On a more general level, I very
>> strongly suggest you spend some time learning Python (version 2.x -
>> not (yet) version 3.x), because your question is really about Python
>> itself, and something anyone coding in Python should know. Remember
>> that Django is just a Python framework...
>>
>> HTH
>>
>> --
>
>
> Thanks all.
>
> Good point. I've actually been working through Learn Python the Hard
> Way & How to Think Like A Computer Scientist.
>
> -James
>
> --
> 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.
>
>

-- 
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.

Reply via email to