This commit is contained in:
iriska-gri committed 2023-11-02 08:18:31 +03:00
1 parent 31ed945467
commit 2df9a3e6e6
29 files changed
+122 -198

No files matched your search

+2 -2
View File
@@ -2,6 +2,7 @@ import jwt
import requests
import json
from django.conf import settings
from portal.settings import myDEBUG
from django.forms.models import model_to_dict
from rest_framework import authentication, exceptions
from datetime import datetime
@@ -9,10 +10,9 @@ from .models import User
from userauth.models import *
from rest_framework_simplejwt.serializers import TokenObtainPairSerializer
from rest_framework_simplejwt.views import TokenObtainPairView
from django.contrib.auth import get_user_model
User = get_user_model()
myDEBUG=True
# class Authexception(Exception):
# def __init__(self, *args):