That's a good suggestion Markus, and more flexible.

On Tue, 28 Apr 2020 at 16:40, Markus Holtermann <i...@markusholtermann.eu>
wrote:

> Have you considered to allow for multiple app_labels in the
> `squashmigrations` command, maybe together with a `--cross-app` flag, to
> specify the apps from which migrations should be squashed? That way we
> don't need to rely on paths at all, but can log up all migrations in
> question, based on the provided app labels.
>
> Cheers,
>
> Markus
>
> On Tue, Apr 28, 2020, at 2:47 PM, Adam Johnson wrote:
> > That's good, but unfortunately BASE_DIR is only a "pseudo setting."
> > It's something in the startproject template that's useful for building
> > file paths but nothing inside Django actually relies on it or checks
> > that it's set. Perhaps we should consider "promoting" it to a real
> > setting though, to make this easier. Still, that might be naive for
> > projects that bundle their dependencies in some way :/
> >
> > (Slightly tangential - my post on BASE_DIR and its move to pathlib in
> > 3.1:
> > https://adamj.eu/tech/2020/03/16/use-pathlib-in-your-django-project/ )
> >
> > On Tue, 28 Apr 2020 at 13:36, Javier Buzzi <buzzi.jav...@gmail.com>
> wrote:
> > > Correct. Im adding that functionality currently -- im taking the VERY
> naive approach of looking at BASE_DIR and if the app is not in there, its
> foreign to the project. Some insight or better ideas to this would be
> appreciated.
> >
> > >  --
> > >  You received this message because you are subscribed to the Google
> Groups "Django developers (Contributions to Django itself)" group.
> > >  To unsubscribe from this group and stop receiving emails from it,
> send an email to django-developers+unsubscr...@googlegroups.com.
> > >  To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/f202a4bb-1d7b-4c85-9695-f4ef3b996c3c%40googlegroups.com
> <
> https://groups.google.com/d/msgid/django-developers/f202a4bb-1d7b-4c85-9695-f4ef3b996c3c%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
> >
> >
> > --
> > Adam
> >
> >  --
> >  You received this message because you are subscribed to the Google
> > Groups "Django developers (Contributions to Django itself)" group.
> >  To unsubscribe from this group and stop receiving emails from it, send
> > an email to django-developers+unsubscr...@googlegroups.com.
> >  To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-developers/CAMyDDM2%3DSTi9pe3LyaYL4%2BLEu8ZcWCgcjynR5MvV30PJiTsoDQ%40mail.gmail.com
> <
> https://groups.google.com/d/msgid/django-developers/CAMyDDM2%3DSTi9pe3LyaYL4%2BLEu8ZcWCgcjynR5MvV30PJiTsoDQ%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers  (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/eaa8b320-15b9-43ab-b50c-3bb6a704898f%40www.fastmail.com
> .
>


-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM0sCtAW1%2Bv8GOqW1D3X89eVzremBRrz-vB%2BbNqV%2BDJ99w%40mail.gmail.com.

Reply via email to