Closed GoogleCodeExporter closed 9 years ago
It looks to me like you're importing it as intranet.models.configuration
instead of
cms.intranet.models.configuration somewhere. Python can't know in advance that
those
two modules are the same, not until they're both imported, and it gives each of
them
a name based on how it was imported. Since just importing the module is enough
to
trigger the setting getting registered, it gets registered twice, each with a
different module name, as you see in your database settings.
Make sure all your code is always importing it as
cms.intranet.models.configuration
*or* intranet.models.configuration, but not both.
Original comment by gulop...@gmail.com
on 19 May 2008 at 11:21
Thanks for the fast response.
Unfortunately I alreday checked the imports and the only import line in the
whole
project is as I stated in the main issue text:
from cms.intranet.models import Client, ClientInvitation, configuration
There is *no* import without the 'cms' module (grepped the whole project files)
-
that's why I initially reported this. If fully agree with your problem
analysis, but
since there is no mixed import statement, the problem is somewhere else. I am
now
going to dig deeper and report back what I've found.
BTW: I'm using dbsettings with newforms-admin-branch (rev 7233 and trunk) -
maybe
this is a side-effect of some new features.
Original comment by pesch...@gmail.com
on 19 May 2008 at 12:26
Original issue reported on code.google.com by
pesch...@gmail.com
on 19 May 2008 at 11:06