title: How to Access Current User from Django to React?
body: <p>I am developing a system where a user logs in and they can use the features of our service. We have used Django Authentication to make the User and Login backend.
  This is the custom User model in my models.py -</p>
  <pre><code>class UserDef(AbstractUser):
      def __str__(self):
          return self.first_name + self.last_name
      
      employeeId = models.IntegerField(unique=True)
      email_address = models.EmailField()
      first_name = models.CharField(max_length=256)
      last_name = models.CharField(max_length=256)
      USER_TYPES = [('1',&quot;Admin&quot;), ('2',&quot;Director&quot;), ('3',&quot;Sr. Manager&quot;), ('4',&quot;Manager&quot;) , ('5',&quot;Sr. Engineer&quot;), ('6',&quot;Assistant Regional Manager&quot;), ('7',&quot;Assistant to the Regional Manager&quot;)]
      user_type = models.CharField(max_length=2048, choices=USER_TYPES)
      created_at = models.DateTimeField(auto_now_add=True)
  
  </code></pre>
  <p>This in itself works really well and I was able to access all data as needed. I am writing my front-end in React though. Which means there's a certain disconnect between the templates html file and the actual React.js code. Which means I can't simply send the employeeId or some other attribute as context. Does anyone know how I can extract that User information from the Django DB (which we have connected to an RDS-MySQL server) and display it in my React app.</p>