quot; is a new thing in the upcoming Django version. I'm fairly
>> certain that you accidentially used Django's development version at some
>> point while going through the tutorial.
>>
>> Could you please paste your models.py and the migration files Django
>> cr
ns".
>
> /Markus
>
> On Sun, Aug 21, 2016 at 11:16:44PM -0700, Dennis Kornbluh wrote:
> >Going through the Django tutorial
> ><https://docs.djangoproject.com/en/1.10/intro/tutorial05/>, now at part
> 5,
> >section "Running tests". Followed t
ections precisely, copy/pasted to
create polls/test.py, After running
$ python manage.py test polls
got a stacktrace (http://dpaste.com/2XP5QZ7) ending with TypeError: 'class
Meta' got invalid attribute(s): indexes
Totally stumped. Everything has worked up to this point.
--
You receiv
05/>, now at part
> 5, section "Running tests". Followed the directions precisely, copy/pasted
> to create polls/test.py, After running
>
> $ python manage.py test polls
>
>
> got a stacktrace (http://dpaste.com/2XP5QZ7) ending with TypeError: 'class
>
ttp://dpaste.com/2XP5QZ7) ending with TypeError: 'class
Meta' got invalid attribute(s): indexes
Totally stumped. Everything has worked up to this point.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
i migrated to linux
everything is clear
thanks
On Saturday, August 2, 2014 11:22:30 AM UTC+1, ngangsia akumbo wrote:
>
> That is the error i got ,
>
> i am using windows so it id diffiult at times to copy the full error
>
> On Friday, August 1, 2014 1:40:14 PM UTC+1, Collin Anderson wrote:
>>
That is the error i got ,
i am using windows so it id diffiult at times to copy the full error
On Friday, August 1, 2014 1:40:14 PM UTC+1, Collin Anderson wrote:
>
> all of your methods are indented too much. They should be at the same
> level as `class Meta`, not part of it.
>
--
You receive
all of your methods are indented too much. They should be at the same level
as `class Meta`, not part of it.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dja
On Friday, 1 August 2014 11:55:10 UTC+1, ngangsia akumbo wrote:
>
> class Meta invalid attribute , price_sale, get_absolute_url
>
>>
>>>
You *have* to do better than this. As I have told you before, you must
provide *all* the relevant information if you want people to he
class Meta invalid attribute , price_sale, get_absolute_url
On Friday, August 1, 2014 3:10:40 AM UTC+1, cmawe...@gmail.com wrote:
>
> Do you have the full error message?
>
>
> On Thursday, July 31, 2014 5:48:55 PM UTC-4, ngangsia akumbo wrote:
>>
>> *Got an invalid
Do you have the full error message?
On Thursday, July 31, 2014 5:48:55 PM UTC-4, ngangsia akumbo wrote:
>
> *Got an invalid attribut error*
>
> class Product(models.Model):
> name = models.CharField(max_length=255, unique=True)
> slug = models.SlugField(max_length=255, unique=True,
>
*Got an invalid attribut error*
class Product(models.Model):
name = models.CharField(max_length=255, unique=True)
slug = models.SlugField(max_length=255, unique=True,
help_text="Each product has a unique name")
brand = models.CharField(max_length=50)
sku = models.CharFi
> in Django models.py.
>
> However while doing a syncdb I get an error like this :
>
> TypeError: 'class Meta' got invalid attribute(s): using
>
> what am I missing here??
>
> any pointers or docs will be of great help.
>
> -
> Regards
&g
Hi all,
I am newbie in django and while trying to write a database router for
using multiple database I did something like :
class Meta:
using = 'somedatabasename'
in Django models.py.
However while doing a syncdb I get an error like this :
TypeError: 'class Me
Thank you, I'm sure you're essentially correct, with one wrinkle.
What I believe happened was that the Debian upgrade resulted in a
change from python 2.5 to 2.6,
and so I believe that what happened was that resulted in the
pythonpath changing as well, and pointing
to the Debian 'python-django' pac
**kwargs))
> File "/usr/lib/pymodules/python2.6/django/db/models/base.py", line
> 213, in add_to_class
> value.contribute_to_class(cls, name)
> File "/usr/lib/pymodules/python2.6/django/db/models/options.py", line
> 93, in contribute_to_class
> raise TypeError
alue.contribute_to_class(cls, name)
File "/usr/lib/pymodules/python2.6/django/db/models/options.py", line
93, in contribute_to_class
raise TypeError("'class Meta' got invalid attribute(s): %s" %
','.join(meta_attrs.keys()))
TypeError: 'class Meta' got inv
17 matches
Mail list logo