Consider this blog post model:
:
import pygame, sys | |
from pygame.locals import * | |
import pickle | |
import select | |
import socket | |
WIDTH = 400 | |
HEIGHT = 400 | |
BUFFERSIZE = 2048 |
import jwt | |
from django.conf import settings | |
from django.contrib.auth.models import User | |
from rest_framework import exceptions | |
from rest_framework.authentication import TokenAuthentication | |
class JSONWebTokenAuthentication(TokenAuthentication): |
domain | name | type | ||
---|---|---|---|---|
katyperry | katyperry.com | KATY PERRY | celebrity | |
justinbieber | smarturl.it | Justin Bieber | celebrity | |
taylorswift13 | grmypro.co | Taylor Swift | celebrity | |
rihanna | rihannanow.com | Rihanna | celebrity | |
ladygaga | The Countess | celebrity | ||
jtimberlake | justintimberlake.com | Justin Timberlake | celebrity | |
TheEllenShow | ellentube.com | Ellen DeGeneres | celebrity | |
britneyspears | britney.lk | Britney Spears | celebrity | |
Cristiano | Cristiano Ronaldo | celebrity |