- Create a GCP App
- Go to API Overview
- Go to "Credentials" on the menu to the left
- Hit Create Credentials at the top of the page
- For the "Approved JavaScript Origins", set it to be
http://localhost:8000. (TODO: We need to add our heroku deployments to this list) - For the "Authorized Redirect URLs", set it to be
http://localhost:8000/accounts/google/login/callback/. (TODO: See above) - (side note: if you are running into errors, keep in mind that
localhostand127.0.0.1are two different domain names, even though they resolve to the same place)
- For the "Approved JavaScript Origins", set it to be
- Run migrations:
python manage.py migrate - Create superuser:
python manage.py createsuperuser- note that if you create it with your google email that you'll be testing with, there will be a conflict, so feel free to use a dummy email here. - Copy
.env.templateover to your very own local.envfile - note that this file is in.gitignorefor a good reason - we don't want anybody to have access to anybody else's.envfile. - Copy the client id and secret key (gotten from the GCP console) into the corresponding environment variables into your new
.env.
uva-cs3240-s22/word-of-mouth
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|