Re: Getting error on first step of tutorial

2013-04-30 Thread millerdl
No, I never figured it out.  I deleted version 1.5 and specified version 
1.4 for the installation.  The same tutorial steps worked ok under version 
1.4 so I gave up on 1.5 and just used 1.4.  Prior to that I had set up a 
virtualenv with a 1.5 installation and that failed the same way, so I 
assume that it wasn't due to any other packages I had installed in my 
system python.  Also, version 1.5 worked ok on my Linux box so maybe it is 
something specific to a Windows installation.

Sorry,
Dennis

On Thursday, April 25, 2013 6:55:33 PM UTC-6, A. Dias wrote:
>
> 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
>
>
>

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




Getting error on first step of tutorial

2013-04-09 Thread millerdl
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 bit
  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 >
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 
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 
'__lt__': [('__gt__', lambda self, other: other < self),
  File "c:\python27\lib\functools.py", line 56, in 
'__lt__': [('__gt__', lambda self, other: other < self),

.
.
almost 500 repetitions until recursion depth error
.
.
  
  File "c:\python27\lib\functools.py", line 56, in 
'__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+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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.