BLOG

Search Console - is a must-have SEO tool, with Django in PythonAnywhere.

tool

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.

Google Search Console

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.

  1. tool
  2. Search Console - is a must-have SEO tool, with Django in PythonAnywhere.

AUTHOR

Almost 10 years have passed since I started learning web development. Learning web development has made my life more fulfilling. This is because the greatest benefit that can be obtained in the process of learning web development is that when you encounter difficulties, you acquire the attitude of actively searching for information to solve them on your own. And just as I learned a lot from the knowledge of my predecessors, I hope that by disseminating information in English, it will reach people around the world who want to learn web development. life is very short. I would be very happy if I could add even a little bit to your life by my outputting what I learned every day. Maybe the information is incorrect or outdated at times. I'll update when I find out.