import taggingclass Entity(models.Model):...tagging.register(Entity)
I'm getting an error. So far as I can tell, this is the only time tagging.register() is called, although I do call admin.site.register(Entity). Any ideas how I might be making a redundant request? If this is happening because the file is being imported more than once, what is an appropriate way to guarantee that Entity is only registered once?
AlreadyRegistered at /
The model 'Entity' has already been registered.
| Request Method: | GET |
|---|---|
| Request URL: | http://linux:8000/ |
| Exception Type: | AlreadyRegistered |
| Exception Value: | The model 'Entity' has already been registered. |
| Exception Location: | /usr/local/lib/python2.6/dist-packages/django_tagging-0.3.1-py2.6.egg/tagging/__init__.py in register, line 39 |
| Python Executable: | /usr/bin/python |
| Python Version: | 2.6.5 |
| Python Path: | ['/home/jonathan/directory', '/usr/local/lib/python2.6/dist-packages/pip-0.6.3-py2.6.egg', '/home/jonathan/store/src/satchmo/satchmo/apps', '/usr/local/lib/python2.6/dist-packages/django_threaded_multihost-1.3_3-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/django_signals_ahoy-0.1_1-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/django_tagging-0.3.1-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] |
| Server time: | Wed, 23 Jun 2010 10:46:07 -0500 |
--
→ Jonathan Hayward, christos.jonathan.hayward@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I invite you to visit my main site at http://JonathansCorner.com/
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment