The reason for using google search console is that URLs may not be indexed even if you upload a sitemap.
Actually I also had some URLs not indexed.
Search Console is also an essential tool for SEO, as it allows you to see what kind of queries your site is being searched for.
This time, I will introduce how to install the search console with PythonAnywhere.
[Search Console] How to install with Django in PythonAnywhere.
In google search console, select "URL Prefix" for "Domain" or "URL Prefix".
In addition, please download the HTML file at "Confirm Ownership" on the website.
The downloaded HTML file is stored directly under the templates folder.
Next, edit "urls.py" under the app folder.
urlpatterns = [ path('googlexxxxxxxxxxxxxxxx.html/', views.GoogleSearchConsoleView.as_view(), name='GoogleSearchConsole'), ]
Next, edit "views.py" under the app folder.
from django.views.generic import TemplateView class GoogleSearchConsoleView(TemplateView): template_name = 'googlexxxxxxxxxxxxxxxx.html'
Click "Verify" in "Verify Ownership" in google search console and you're done.
Please, try it.
Please read the article below as well.