You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another issue I got:
'ImportError: No module named apps.forum_conversation.registry_config'
when apps directory was inside project directory.
I had to remove "yourproject" from line ] + get_machina_apps(['yourproject.apps.forum_conversation', ]) and move apps one folder up (out of project), or keep apps directory inside project and add project name to registry_config : name = yourproject.apps.forum_conversation
and __init__.py: default_app_config = 'yourproject.apps.forum_conversation.registry_config.ConversationRegistryConfig'
The text was updated successfully, but these errors were encountered:
Hi! I am trying to override a class in models.py following doc instructions. It finally worked but I would like to provide some points.
In overriding code example at https://django-machina.readthedocs.io/en/stable/customization/recipes/overriding_models.html :
seems to be missing:
In the whole example doc about overriding app/model, the app to override is reffered as "forum_conversation" but at https://django-machina.readthedocs.io/en/stable/customization/recipes/overriding_models.html the migration command is:
$ django-admin makemigrations forum_conversations
Another issue I got:
'ImportError: No module named apps.forum_conversation.registry_config'
when apps directory was inside project directory.
I had to remove "yourproject" from line
] + get_machina_apps(['yourproject.apps.forum_conversation', ])
and move apps one folder up (out of project), or keep apps directory inside project and add project name toregistry_config
:name = yourproject.apps.forum_conversation
and
__init__.py
:default_app_config = 'yourproject.apps.forum_conversation.registry_config.ConversationRegistryConfig'
The text was updated successfully, but these errors were encountered: