Hello, such a question.

I deploy locally ReadTheDocs on my computer. All set and works.

In ReadTheDosc there is a function to connect accounts: enter image description here

Need to set up a connection for gitlab. But an error creeps out:

DoesNotExist at /accounts/gitlab/login/ SocialApp matching query does not exist. 

You need to declare the connection in Django.

I go to the settings: enter image description here

I was looking for a long ID and secret key from Gitlaba, but I never found it.

If not difficult, tell me where to look at this information.

Ps do the following example for Facebook : Vidos

  • Do you have your own local gitlab? - Nick Volynkin
  • @NickVolynkin not. But I think this will be able to work everything out if ReadTheDocs is deployed locally. - Anatoliy.CHA
  • Should work. Somewhere there is a server readthedocs.org, and on it RTD is also deployed locally, just like yours. - Nick Volynkin
  • I know only one person to whom I would go with this question - this is Eric Holscher, one of the authors of RTD. It can be found in the slug Write the Docs , @ericholscher. But surely not only he knows the answer. - Nick Volynkin
  • I suggest you ask a question on en.SO. If no one answers the day - write to Eric with reference to the question, he is a friendly guy. Help you with the translation of the question into English? - Nick Volynkin

2 answers 2

So far I have come to the point that you need to enter your account settings on GitLab

enter image description here

Enter the name you want, the URL is yours. In my case it is

http://127.0.0.1:8000/

After that, select the access rights, click save.

Such a window pops up to us, where the ID and the secret key will be specified. (Circumcised for safety)

enter image description here

But the problem remains that there is no authorization, it also gives an error. If you put a call to example.com in the site category: enter image description here

That gives the following: enter image description here

This is closer to the truth.

    Depending on what gitlab (public or local) you need to go to the profile or admin panel, then to Applications.

    We put all the jackdaws (although perhaps everything is not needed). The created ID and key are inserted into the appropriate fields http://[readthedocs.domain.name]/admin/socialaccount/socialapp/add/ .

    So that the Redirect URI included is not valid. does not appear Redirect URI included is not valid. , you need to insert the Redirect URI http://[readthedocs.domain.name]/accounts/gitlab/login/callback/ .

    As you understand, for github and other services everything is basically the same.