Consider this blog post model:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame, sys | |
from pygame.locals import * | |
import pickle | |
import select | |
import socket | |
WIDTH = 400 | |
HEIGHT = 400 | |
BUFFERSIZE = 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |