python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Why LoginRequiredMixin don't stop my dispatch flow, when user is not authenticated
I have no clue why in this View, dispatch does not end after super():
class CreateBookView(LoginRequiredMixin, CreateView):
template_name = 'library/create_book.html'
form_class = BookForm
def dispat...
Ve g
Votes: 0
Answers: 0
Create @login_required like function for used Form(Modelform). So that User can't access confidential url without login-by typing just url?
I know that I can use @login_required but it is only used when we store user in User But in my case I stored model in form So it is not working for me. Also my created user is not getting authenticate...

mhr007
Votes: 0
Answers: 0

