Re: Problem setting up django server
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBAgAGBQJRwHi7AAoJEALk1Ud72nUeuD0QAIQo/BEEYBoweiF62aT0q0nD
Khjvu1YFsAQrfI5LbOGOKEhM6DpSW6FYpgivRmArfmBMedTXUsLPA0heFzeMCLfG
9VAQUDqiyEzstWk0DC8gltv/dWRSTH+Tg9j53xADQe7mgds6U79K3YseHnsKilSc
Gty/j9S3sDfhK03vUCqn9RKaIC6Qjq5FhdOyc3v+u9R80OL5Iu46rRfkjZl01u+Q
eHVsm0rqgvmxmuuvtjj14tqBM0cJfz+hKza/41NegO7rcoHMfbYiWyWrEfoTT0RW
u3cQcVFvciHqiz73PaEwho2O2ddwVac9lZaS8q0t0uzLCJs5kFch0CDSvXlK3dLg
K7ciIS+0fIXB6eamjZnorW+Ajni01INxkGrp/mMF8YYoVrnlSVqkxr9Ojt+dG44U
uVEQnmd4E/AzKshqcb+G1p1ENjklu7nCxkXrnU/H+ZjkB0fecpfVsX5/VnqIkk0L
55/+fukZeS1qTYp1Ao/pcld5t7kYaTcR7pJsKz3F/K4vUSiQ3mThAAgg2q6mBm8I
K98vLaFQgoiIP1ZqRb6w6hUYyU0CylvB8JcgLeOFvp+45nIh2I1Lo7SQeCXQeI8u
lOlPl070/x5UbSQpXwhRbc4vp8Yr+VrT5Z1wbmvBhW6EPuGfpL9sZjjD8eszm1gj
xceZQmB/WzSf0NzZo5WJ
=X2JR
-----END PGP SIGNATURE-----
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

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home