Forums

Using manage.py Shell Command

Using manage.py Shell Command in the IPython console I import my web app model and I am getting an error saying "AlreadyRegistered: The model BlogPost is already registered". Additionally when I try to access the row(s) found in the Model Class I tried to import I get an error saying "NameError: name 'BlogPost' is not defined". Can anyone help me out I am not sure what I am doing wrong?

Thank

That normally happens (for example, see here) if you put the code to register your admin models in models.py instead of admin.py. Might that be the case here?