Django Rest Framework Token Authentication

myapp/views.py
myapp/urls.py
INSTALLED_APPS in settings.py
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication', # new
],
}
Generated token for user admin

--

--

--

Software Engineer, Indonesia

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Backend to the Future I — Rails

Vertical Software Development

Now if the user changes their color preference in your app’s settings, or, for example, the sun…

Announcing DotVVM Community Meetup

Programmatically Finding Your Neighborhood’s Best Avocado Toast

The grid.studio manifesto

ECH Bags💰 The 1st Launch on the Echelon Plugs🔌 Launchpad.

How I received an Advanced Badge in the IBM Quantum Challenge’21! - Part 2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adi Ramadhan

Adi Ramadhan

Software Engineer, Indonesia

More from Medium

Connecting postgresql to django application

Containerized Django PostgreSQL Application

A Guide to OAuth2.0 Authorization with Django Rest Framework.

Deploy Django App in AWS EC2 Instance Using Docker Image