How to register a model in django-tagging anywhere not in the applications? -
Is it possible to register a model in the tagging app or dojo-tagging in my app?
The app / map / model is standard way to edit:
Tagging tagging from app import. Resistor (mimodel)
I want to keep both applications without changes, for example, to be able to pull new versions and replace them, so I tried to do it at the end of the project settings.py, but of course it fizzled out. (It fails when importing MyModel.) Any other way?
You can not do this in settings.py, because the models have not yet been set. One possibility is that urls.py - already exists in admin.autodiscover
, so it can also be a good place to call tagging.register
.
There has been a lot of discussion about this kind of place in the Diego-Developers group, but no firm policy has been reached so far.
Comments
Post a Comment