How to get the currently logged-in user\'s id?
in models.py:
models.py
class Game(models.model): name = models.CharField(max_length=255) o
You can access Current logged in user by using the following code:
request.user.id