I have a Django web app that has 2 types of users, say customers, and business. I need to get the type of user trying to login. So I defined a url pattern as folows:
path('login/<type>/', LoginView.as_view(), name='login'),
But how can I restrict the url patten to match only the following patterns
- login/customers/
- login/business/
use regex in the url. Something like...