title: Is there a efficient substitute to my django code?
body: <h1>views.py</h1>
  <pre><code>def redirectory(request):
      if request.user.is_Type_A:
          return redirect(&quot;is_Type_A_views&quot;)#This loads Type_A html page
      elif request.user.is_Type_B:
          return redirect(&quot;is_Type_B_views&quot;)#This loads Type_B html page
      elif request.user.is_Type_C:
          return redirect(&quot;is_Type_C_views&quot;)#This loads Type_C html page
  </code></pre>
  <p>Hi, i've created a log in function in django views.py that checks if<br />
  a user is_Type_A or is_Type_B or is_Type_C and logs in the user
  to their custom pages based on their boolean fields True or False.
  I didn't want to use filters because the account users must have access
  to different function on the views.py and I didn't want to use
  conditional statements on the html page because I dont want to
  confuse myself and other people so I've created that code instead.
  So its basically a redirectory function.</p>
  <p>my question is, is that code efficient? can a Server use that single code
  and handle multiple login requests? And if not, is there a more efficient substitute code that I can use?</p>