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:
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
2 matches
Mail list logo