Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.shortcuts import render
- def index(request):
- context = {
- 'message': 'You can see this messabe because you are authenticated!!!'
- if request.user.is_authenticated
- else 'You can not see this message because you are not authenticated'
- }
- return render(request, 'blog/index.html', context)
Add Comment
Please, Sign In to add comment