I realized there may have been some pre-existing stuff in the directory, so
I renamed it and extracted fresh from tarball. I got an error I had seen
earlier but couldn't reproduce:

AttributeError at /

'module' object has no attribute 'register'

Request Method:GETRequest URL:http://localhost:8000/Django
Version:1.2.1Exception
Type:AttributeErrorException Value:

'module' object has no attribute 'register'

Exception 
Location:/Library/Python/2.6/site-packages/Django-1.2.1-py2.6.egg/django/utils/importlib.py
in import_module, line 35Python Executable:/usr/bin/pythonPython Version:
2.6.1Python Path:['/Users/jonathan/directory',
'/Library/Python/2.6/site-packages/Django-1.2.1-py2.6.egg',
'/Library/Python/2.6/site-packages/tagging-0.2.1-py2.6.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
'/Library/Python/2.6/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode']Server
time:Tue, 17 Aug 2010 21:20:53 -0500
On Tue, Aug 17, 2010 at 8:39 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:

> Thank you; I'm not seeing how. My admin.py reads:
>
> import django.contrib.admin
> import directory.models
> import tagging
>
> django.contrib.admin.autodiscover()
> django.contrib.admin.site.register(directory.models.Entity)
> django.contrib.admin.site.register(directory.models.Location)
> tagging.register(directory.models.Entity)
>
>
> Commenting the tagging.register() call doesn't seem to make a difference.
>
> On Tue, Aug 17, 2010 at 8:27 PM, Sam Lai <samuel....@gmail.com> wrote:
>
>> It means somehow you're calling this line in an admin.py file twice -
>>
>> admin.site.register(Entity)
>>
>> Check the admin.py file for the app that contains the Entity model.
>>
>> On 18 August 2010 10:57, Christos Jonathan Hayward <
>> christos.jonathan.hayw...@gmail.com> wrote:
>>
>>> I am trying to migrate from one server to another: I tarred it up on the
>>> Linux server, untarred on a Mac, got one or two complaints about missing
>>> packages, and when I had resolved them, got the error below.
>>>
>>> Entity is the name of one of my models. What does this mean, and how is
>>> this issue addressed? (I had been actively developing on the old server and
>>> don't remember seeing this error.)
>>>
>>> AlreadyRegistered at /
>>>
>>> The model Entity is already registered
>>>
>>>  Request Method:GET Request URL:http://localhost:8000/ Django Version:
>>> 1.2.1 Exception Type:AlreadyRegistered Exception Value:
>>>
>>> The model Entity is already registered
>>>
>>> Exception 
>>> Location:/Library/Python/2.6/site-packages/Django-1.2.1-py2.6.egg/django/contrib/admin/sites.py
>>> in register, line 78 Python Executable:/usr/bin/python Python Version:
>>> 2.6.1 Python Path:['/Users/jonathan/directory',
>>> '/Library/Python/2.6/site-packages/Django-1.2.1-py2.6.egg',
>>> '/Library/Python/2.6/site-packages/tagging-0.2.1-py2.6.egg',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
>>> '/Library/Python/2.6/site-packages',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
>>> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode']
>>>  Server
>>> time:Tue, 17 Aug 2010 19:53:40 -0500
>>> --
>>> [image: Christos Jonathan Hayward ← An Orthodox Christian 
>>> author.]<http://JonathansCorner.com>
>>> Christos Jonathan Hayward, an Orthodox Christian author.
>>>
>>> Author Bio <http://JonathansCorner.com/author/> • 
>>> Books<http://CJSHayward.com/>
>>>  • *Email <christos.jonathan.hayw...@gmail.com>* • 
>>> Facebook<http://www.facebook.com/christos.jonathan.hayward>
>>>  • LinkedIn <http://www.linkedin.com/in/jonathanhayward> • 
>>> Twitter<http://twitter.com/JonathansCorner>
>>>  • *Web <http://JonathansCorner.com/>* • What's 
>>> New?<http://JonathansCorner.com/>
>>> I invite you to visit my "theology, literature, and other creative works"
>>> site.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to django-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> [image: Christos Jonathan Hayward ← An Orthodox Christian 
> author.]<http://JonathansCorner.com>
> Christos Jonathan Hayward, an Orthodox Christian author.
>
> Author Bio <http://JonathansCorner.com/author/> • 
> Books<http://CJSHayward.com/>
>  • *Email <christos.jonathan.hayw...@gmail.com>* • 
> Facebook<http://www.facebook.com/christos.jonathan.hayward>
>  • LinkedIn <http://www.linkedin.com/in/jonathanhayward> • 
> Twitter<http://twitter.com/JonathansCorner>
>  • *Web <http://JonathansCorner.com/>* • What's 
> New?<http://JonathansCorner.com/>
> I invite you to visit my "theology, literature, and other creative works"
> site.
>
>


-- 
[image: Christos Jonathan Hayward ← An Orthodox Christian
author.]<http://JonathansCorner.com>
Christos Jonathan Hayward, an Orthodox Christian author.

Author Bio <http://JonathansCorner.com/author/> • Books<http://CJSHayward.com/>
 • *Email <christos.jonathan.hayw...@gmail.com>* •
Facebook<http://www.facebook.com/christos.jonathan.hayward>
 • LinkedIn <http://www.linkedin.com/in/jonathanhayward> •
Twitter<http://twitter.com/JonathansCorner>
 • *Web <http://JonathansCorner.com/>* • What's
New?<http://JonathansCorner.com/>
I invite you to visit my "theology, literature, and other creative works"
site.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to