The model Location is already registered
This is a horrible, horrible problem which I've worked around as follows:
from django.contrib.admin import site
def adminRegister(model, admin_class=None, **kwargs):
'''(Re)register a model with the AdminSite site.'''
if model in site._registry:
site.unregister(model)
site.register(model, admin_class, **kwargs)
class MagicModel(models.Model):
pass
adminRegister(MagicModel)
I encountered this whenever I tried to run ./manage.py shell and
./manage.py runserver at the same time. If I understood what I read in
the development list, though, this is being fixed for release 1.4.