Skip to content

Instantly share code, notes, and snippets.

View voron434's full-sized avatar
😎
Hello, World!

Ilya Osipov voron434

😎
Hello, World!
View GitHub Profile
import json
from django.contrib.sites.shortcuts import get_current_site
from django.contrib.auth import login
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden
from django.shortcuts import render, get_object_or_404, redirect, resolve_url
from django.utils.encoding import force_bytes, force_text
from django.utils.http import urlsafe_base64_encode, urlsafe_base64_decode
from django.template.loader import render_to_string