Home > Blockchain >  How to create key to get a request to Django API?
How to create key to get a request to Django API?

Time:04-14

I am creating a database with Django, and I am accesing it with Excel and Apps Script. I can't log in into my superuser account (the only account I'll be having). Therefore, I want to know if there is a way to set a key, or a password, passed through an HTTP header, that I can use to access my API.
Currently I only have one API get method, but I'll have more create, update, etc., and I want to be able to use the same key for these as well. It is a really simple Django application deployed in heroku, so I am not using django-REST-framework, nor graphene-django. So if the solution can come without installing anything else, it would be nice. However, if this is not possible, it is better if the solution comes through graphene-django, since I have used it before, and I am more familiar with it.
It is important to notice that both the excel file and the apps script are private, since I am using django as a database manager for a small, personal project.

Thank you very much in advance!

CodePudding user response:

Have you tried using A sample look

  • Related