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
We have some internal third party apps that we use in other apps in our eco system. The problem is that the AJAX_LOOKUP_CHANNELS is required to be in the settings.py in order for it to work and that means we constantly have to copy those channels in our main app and keep them up to date. So we wrote:
Would you accept a PR for this? It would be backwards compatible because they don't have to use AutoDiscover(). I'm fine if you'd rather keep this as a third-party add-on if you want.
I'm not sure it even needs to import the AutoDiscover in settings.
I would be comfortable allowing it to default to auto discover.
there are cases where I have had multiple apps installed that had lookups but I did not want them all enabled for a site. but then I would just set AJAX_LOOKUP_CHANNELS in the main settings and this would disable auto discover.
I was thinking it would be great if it was automatic, but then I thought it possibly could break backwards compatibility. If you are ok with possibly breaking that, then I can do a PR that would do it automatically.
We have some internal third party apps that we use in other apps in our eco system. The problem is that the
AJAX_LOOKUP_CHANNELS
is required to be in thesettings.py
in order for it to work and that means we constantly have to copy those channels in our main app and keep them up to date. So we wrote:https://github.com/peterfarrell/django-ajax-selects-autodiscover
This allows us to autodiscover any channels in installed apps by looking for a
AJAX_LOOKUP_CHANNELS
in eachlookup.py
.In your
settings.py
file, replace yourAJAX_LOOKUP_CHANNELS
with:The
lookup.py
files is now where you define all your channels. Here is an example:The text was updated successfully, but these errors were encountered: