As you have set social login only for localhost in the previous chapter, you need to adjust the settings (e.g., home page URL and the callback URL) for production using the domain for your web app. The steps are similar to the ones explained in the previous chapter.
As you are using a new database (PostgreSQL) and not transferring the data stored in the local database, you can make the production environment social login settings from scratch.
Three steps were explained in the previous chapter. We'll explain the key differences for each step in this lesson.
Once the registration is done, there are two OAuth Apps like shown below.
No need to edit the settings file unless you are using a different SITE_ID
Note: SITE_ID
is the Django ID for the site table in the Django admin.
SITE_ID
in the settings file. The updated display name will be shown in the verification email.Click on the GitHub icon to test if the GitHub social login is working. If all settings are correctly done, you'll be directed to the GitHub site.
Receives a verification email with the new site name.
Adding a production site to the Google social login setting is easier. Unlike GitHub, you can use the same Client ID and Secret Key that you generated for the localhost.
You need to do the following:
1. Update credentials (the new domain address and redirect the URL) to the GCP platform
2. Add the new social application data to the Django admin page.
Click on the Google icon. You should be able to use the Google social login feature now.
As you have set social login only for localhost in the previous chapter, you need to adjust the settings (e.g., home page URL and the callback URL) for production using the domain for your web app. The steps are similar to the ones explained in the previous chapter.
As you are using a new database (PostgreSQL) and not transferring the data stored in the local database, you can make the production environment social login settings from scratch.
Three steps were explained in the previous chapter. We'll explain the key differences for each step in this lesson.
Once the registration is done, there are two OAuth Apps like shown below.
No need to edit the settings file unless you are using a different SITE_ID
Note: SITE_ID
is the Django ID for the site table in the Django admin.
SITE_ID
in the settings file. The updated display name will be shown in the verification email.Click on the GitHub icon to test if the GitHub social login is working. If all settings are correctly done, you'll be directed to the GitHub site.
Receives a verification email with the new site name.
Adding a production site to the Google social login setting is easier. Unlike GitHub, you can use the same Client ID and Secret Key that you generated for the localhost.
You need to do the following:
1. Update credentials (the new domain address and redirect the URL) to the GCP platform
2. Add the new social application data to the Django admin page.
Click on the Google icon. You should be able to use the Google social login feature now.