On 18/06/13 17:46, smy28 wrote:
> No, I haven't edited anything yet. Okay, I attached a models.py file
> from django/contrib/auth
>
> On Tuesday, June 18, 2013 11:39:09 AM UTC-4, Michael Anckaert wrote:
>
>     On 18/06/13 17:37, smy28 wrote:
>>     Yes, I have attached the base.py file (which seems to be the one
>>     with the error, correct?)
>>
>>     On Tuesday, June 18, 2013 11:11:52 AM UTC-4, Michael Anckaert wrote:
>>
>>         On 18/06/13 17:00, smy28 wrote:
>>         > I just installed Django and I'm trying to initially set up
>>         the server,
>>         > as detailed in the 'Part 1' Tutorial. I haven't configured any
>>         > settings yet. Whenever I run the command "python manage.py
>>         runserver",
>>         > I get the following message:
>>         >
>>         >
>>         >
>>         > Validating models...
>>         >
>>         > Unhandled exception in thread started by <bound method
>>         > Command.inner_run of
>>         >
>>         <django.contrib.staticfiles.management.commands.runserver.Command
>>
>>         > object at 0x100592e90>>
>>         > Traceback (most recent call last):
>>         >   File
>>         >
>>         
>> "/Library/Python/2.6/site-packages/django/core/management/commands/runserver.py",
>>
>>         > line 92, in inner_run
>>         >     self.validate(display_num_errors=True)
>>         >   File
>>         >
>>         "/Library/Python/2.6/site-packages/django/core/management/base.py",
>>
>>         > line 280, in validate
>>         >     num_errors = get_validation_errors(s, app)
>>         >   File
>>         >
>>         
>> "/Library/Python/2.6/site-packages/django/core/management/validation.py",
>>
>>         > line 35, in get_validation_errors
>>         >     for (app_name, error) in get_app_errors().items():
>>         >   File
>>         >
>>         "/Library/Python/2.6/site-packages/django/db/models/loading.py",
>>         line
>>         > 166, in get_app_errors
>>         >     self._populate()
>>         >   File
>>         >
>>         "/Library/Python/2.6/site-packages/django/db/models/loading.py",
>>         line
>>         > 72, in _populate
>>         >     self.load_app(app_name, True)
>>         >   File
>>         >
>>         "/Library/Python/2.6/site-packages/django/db/models/loading.py",
>>         line
>>         > 96, in load_app
>>         >     models = import_module('.models', app_name)
>>         >   File
>>         "/Library/Python/2.6/site-packages/django/utils/importlib.py",
>>         > line 35, in import_module
>>         >     __import__(name)
>>         >   File
>>         >
>>         "/Library/Python/2.6/site-packages/django/contrib/auth/models.py",
>>
>>         > line 21, in <module>
>>         >     from django.contrib.contenttypes.models import ContentType
>>         >   File
>>         >
>>         
>> "/Library/Python/2.6/site-packages/django/contrib/contenttypes/models.py",
>>
>>         > line 127, in <module>
>>         >     class ContentType(models.Model):
>>         >   File
>>         "/Library/Python/2.6/site-packages/django/db/models/base.py",
>>         > line 97, in __new__
>>         >     new_class.add_to_class('_meta', Options(meta, **kwargs))
>>         > TypeError: Error when calling the metaclass bases
>>         >     __init__() keywords must be strings
>>
>>         Can you show us your models.py? There is an error in one of
>>         your models.
>>
>>         -- 
>>         Kind regards
>>         Michael
>>
>>         Sinax Platform - Scalable Django hosting
>>         http://www.sinaxplatform.com
>>
>>
>     Did you already edit a models.py file in your application?
>     According to the traceback you provided I think there is an error
>     in one of your models. So you should send a models.py file.
>
>     -- 
>     Kind regards
>     Michael
>
>     Sinax Platform - Scalable Django hosting
>     http://www.sinaxplatform.com
>
> -- 
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
It seems that I was too quick with my reply and the solution lies in
what Roberto posted in his reply.
Could you give us the result of the command:

  python --version

-- 
Kind regards
Michael

Sinax Platform - Scalable Django hosting
http://www.sinaxplatform.com

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to