-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetaure/installed app api #941
base: dev
Are you sure you want to change the base?
Conversation
All TOM Toolkit INSTALLED_APPs should inherit from this class rather than the standard django.apps.AppConfig class that the startapp management command uses by default. TOMToolkitAppConfig defines (will define) the instrospectable API of a TOM Toolkit app and the methods tom_base will call for app-specific customizations.
This allows a TOMToolkit app's app config (i.e. TomTargetsConfig) to extend (or not) the TOMToolkitAppConfig methods that tom_base will call to introspect each TOMToolkit INSTALLED_APP.
These would be implemented in each INSTALLED_APP's subclass of TOMToolkitAppConfig with the app-specific nav-bar content. I'm not sure where these methods will be called from.
@phycodurus I think we have taken this a different direction. Would you be OK Closing this PR or having a conversation about moving forward? I feel like we could handle this better with a template and a list of available connection points. I'm not sure we actually gain much by using a base class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need to include these specifically. They should run automatically when the app is installed.
DRAFT: this refactor creates the infrastructure for generalized integration points for tom_base to introspect a TOMToolkit INSTALLED_APP. It's worth looking at these commits in isolation because they just set things up without adding any additional, complicating functionality. (That comes next).