Adding Api Token Authentication in django
By Webdevelopmentlogics
1. Add the following in the settings file
INSTALLED_APPS = (
.......
'rest_framework.authtoken',
)
2. In the PUBLIC_URLS add the url configuration to support the api calls
re.compile(r'^/folder/'),
3. Change the url configration file to support the api urls
url(r'^client/', include('apps.admin.client.urls')),
url(r'^server/', include('apps.api.server.urls')),
INSTALLED_APPS = (
.......
'rest_framework.authtoken',
)
2. In the PUBLIC_URLS add the url configuration to support the api calls
re.compile(r'^/folder/'),
3. Change the url configration file to support the api urls
url(r'^client/', include('apps.admin.client.urls')),
url(r'^server/', include('apps.api.server.urls')),