accounts: me va login apilar togirlandi, create_user command qoshildi

This commit is contained in:
behruz
2025-12-09 22:28:58 +05:00
parent 8b832f8e15
commit e5feb76f7d
9 changed files with 89 additions and 19 deletions

View File

@@ -2,4 +2,5 @@ from .djangorestframework import *
from .simple_jwt import *
from .jazzmin import *
from .cors_headers import *
from .logs import *
from .logs import *
from .swagger import *

View File

@@ -1,7 +1,7 @@
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication'
'rest_framework.authentication.BasicAuthentication',
'rest_framework_simplejwt.authentication.JWTAuthentication',
],
}

3
config/conf/swagger.py Normal file
View File

@@ -0,0 +1,3 @@
SWAGGER_SETTINGS = {
'DEFAULT_MODEL_RENDERING': 'example'
}

View File

@@ -131,4 +131,4 @@ TENANT_MODEL = "customers.Client"
TENANT_DOMAIN_MODEL = "customers.Domain"
import config.conf
from config.conf import *