3đź‘Ť
Is there a reason why using LOGIN_REDIRECT_URL = '/mystartapp/index.html'
wouldn’t work in your case?
Regarding the concept of apps, they are supposed to be independent bits of functionality (which is why they are sometimes labelled “reusable”). However, once you tie apps into a project, the goal is that they do work together at some point !
In the case of contrib.auth
, this reusability is expressed by the parameters you used (such as LOGIN_URL
or LOGIN_REDIRECT_URL
), which allows you to configure the behavior of the app so it works in your project.
For instance, for a merchant side, you could use several apps to perform different actions related to your project:
- An app with your actual functionality (products, pages…)
- An app for search (like
django-solr
) - An app for registration (
django-registration
) - Contrib apps for authentication, session
- A merchant app for payments
The apps perform different bits of functionnality, but they all serve the same purpose and make up a project together.
If you need the apps to operate in a totally independent manner, they shouldn’t be part of the same project in the first place! (Although you could use app A in projects P and Q, and app B only in P, for example).