Thursday, April 25, 2013

Re: Getting error on first step of tutorial

Hey Dennis! 

Have you figured out an answer for that one yet? cause i'm dealing with the exact same error and it would be great if you had a solution for it!

Cheers,
Alex

Terça-feira, 9 de Abril de 2013 7:03:28 UTC+1, mill...@telusplanet.net escreveu:
I'm new to web frameworks and am trying the Django tutorial (https://docs.djangoproject.com/en/1.5/intro/tutorial01/)

Environment:
  Windows 7 64 bi
  Python 2.7 32 bit

Installed Django V1.5.1 with (not using virtualenv):
  pip install --upgrade django

Get 'Successfully installed Django' message

Then followed the tutorial instructions and cd into my trial directory called tmp,
then create base application using:
  django-admin.py startproject mysite

Resulted in the expected creation of:
 mysite/
     manage.py
     mysite/
         __init__.py
         settings.py
         uls.py
         wsgi.py

Then cd into outer mysite directory and use:
  python manage.py runserver

This gives the following traceback:

Validating models...

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.comman
ds.runserver.Command object at 0x03008C90>>
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\django\core\management\commands\runserver.py", line 92, in inner_run
    self.validate(display_num_errors=True)
  File "c:\python27\lib\site-packages\django\core\management\base.py", line 280, in validate
    num_errors = get_validation_errors(s, app)
  File "c:\python27\lib\site-packages\django\core\management\validation.py", line 35, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "c:\python27\lib\site-packages\django\db\models\loading.py", line 166, in get_app_errors
    self._populate()
  File "c:\python27\lib\site-packages\django\db\models\loading.py", line 72, in _populate
    self.load_app(app_name, True)
  File "c:\python27\lib\site-packages\django\db\models\loading.py", line 96, in load_app
    models = import_module('.models', app_name)
  File "c:\python27\lib\site-packages\django\utils\importlib.py", line 35, in import_module
    __import__(name)
  File "c:\python27\lib\site-packages\django\contrib\auth\models.py", line 370, in <module>
    class AbstractUser(AbstractBaseUser, PermissionsMixin):
  File "c:\python27\lib\site-packages\django\db\models\base.py", line 213, in __new__
    new_class.add_to_class(field.name, copy.deepcopy(field))
  File "c:\python27\lib\site-packages\django\db\models\base.py", line 265, in add_to_class
    value.contribute_to_class(cls, name)
  File "c:\python27\lib\site-packages\django\db\models\fields\__init__.py", line 257, in contribute_to_class
    cls._meta.add_field(self)
  File "c:\python27\lib\site-packages\django\db\models\options.py", line 179, in add_field
    self.local_fields.insert(bisect(self.local_fields, field), field)
  File "c:\python27\lib\functools.py", line 56, in <lambda>
    '__lt__': [('__gt__', lambda self, other: other < self),
  File "c:\python27\lib\functools.py", line 56, in <lambda>
    '__lt__': [('__gt__', lambda self, other: other < self),

    .
    .
    almost 500 repetitions until recursion depth error
    .
    .
 
  File "c:\python27\lib\functools.py", line 56, in <lambda>
    '__lt__': [('__gt__', lambda self, other: other < self),
RuntimeError: maximum recursion depth exceeded in cmp


Any ideas about what is wrong, or other tests I can do?

Thanks,
Dennis

--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment