Answers for "give view permission to all users django"

4

loginrequiredmixin

from django.contrib.auth.mixins import LoginRequiredMixin

LOGIN_URL = 'your_url'
Posted by: Guest on October-18-2020
0

how to create staff account in django

user = User.objects.create_user('john', '[email protected]', 'johnpassword')  
user.is_staff=True 
user.save()
Posted by: Guest on September-11-2020

Code answers related to "give view permission to all users django"

Python Answers by Framework

Browse Popular Code Answers by Language