Login required in django
Please check the following
1. Add login url on settings
2. Add redirect url on login required decorator
3. If you create a custom login view make sure to check next kwargs
I am developing ecommerce website in django .
I have view ( addToCart)
I want sure before add to cart if user logged in or not 
so that i use @login_required('login') before view
but when click login it show error (can't access to page ).
Note that: normal login is working