1👍
✅
For the lack of a better way, I have usually created another App Hook and pointed it to another view – that way you can have every major part of the app catered for. If it’s just two different pages, this may be the simplest solution.
👤petr
0👍
In a page’s advanced settings is the application instance name
which is there to enable the same apphook to be used on multiple pages. Setting that would get you two instances of the same apphook.
Alternatively, and perhaps more appropriately, you could split your URLs into a separate file for management. Then you could have a NewsletterManagementAppHook
which points to that new set of URLs, separate from the frontend URLs for users. That way you can setup another apphook on another page.
- Django query get last n records on database server
- User_passes_test: raise exception if user does not pass
Source:stackexchange.com