Dan Jacob
Dan Jacob
That is perhaps my misunderstanding. Nevertheless, it is likely this middleware will be commonly used in projects that want to provide a default authentication check for all views, so is...
> There may be limited if any need for allauth to switch to using the new LoginRequiredMiddleware, as the middleware can just be subclassed by a custom middleware and adapted...
I'm trying if at all possible to avoid using `STATICFILES_DIRS` - I have no need to include CSS and JS with each component as I'm using Tailwind and Alpine and...
> > ... and IMHO it's a "code smell" to include templates and Python files among static assets. > > Just to clarify, .py and .html files are not included...
Was there a reason to remove the per-app autodiscover? As a Django developer this is the pattern I am used to (e.g. with Django admin discovery or app templates), along...
> You totally can keep JS/CSS with other static files and then just point component's JS/CSS to those. There's only a convenience sprinkled on top, which allows you to specify...
Re `STATICFILES`: given your use case (keep JS and CSS in the same directory/package) I would suggest a) making "find in static files" an optional (non-default) add-in e.g. `COMPONENTS.find_in_staticfiles=True` and...
> @danjac Hm, just to check I understand, are you talking about the case where python files are in STATICFILES_DIRS? So if [we implemented this](https://github.com/EmilStenstrom/django-components/issues/610#issuecomment-2309942524), where we'd configured component dirs...