The Project is an application(Website) that show items and their corresponding categories and allows users to manage (add,edit,delete..) these items and categories. OAuth 2.0 is used as an authentication system. Registered users will have the ability to post, edit and delete their own items only.
The Google sign in needs to be enabled by following these steps :
1-Go to Google Dev Console
2-Sign up or Login in.
3-Go to Credentials.
4-Select Create Crendentials -> OAuth Client ID.
5-Select Web application.
6-Enter name 'My Project'.
7-Authorized JavaScript origins = 'http://localhost:8000' .
8-Create.
9-Copy the Client ID and paste it in clientid in login.html in the templates folder .
10-Authorized redirect URIs = 'http://localhost:8000/login' and 'http://localhost:8000/gconnect' and save it.
11-On the Dev Console Select Download JSON .
12-Rename JSON file to client_secrets.json .
13-Place JSON file in your directory where project.py is located.
14-Run project.py from terminal
15-Go to localhost:8000/
16-Enjoy :)