Re: How do I code this in views.py

2017-06-26 Thread Andréas Kühne
Hi, You shouldn't be coding a login system yourself. Django has a very good authentication system that you can use: https://docs.djangoproject.com/en/1.11/topics/auth/ You can then use decorators to say that a page is protected:

How do I code this in views.py

2017-06-26 Thread ray laurenz Monterola
I have two views function: index and login: Index should load first and check if session user id is set, if not it should call login function. login function if get renders the login.html. The problem is I'm having errors with index during run time. -- You received this message because you