complite auth api

This commit is contained in:
behruz-dev
2025-07-15 11:09:28 +05:00
parent dd56acf978
commit f1afb86f20
9 changed files with 163 additions and 18 deletions

View File

@@ -0,0 +1,6 @@
from .celery import app as celery_app
__all__ = (
"celery_app"
)

View File

@@ -1,7 +1,7 @@
from django.conf import settings
from config.env import env
CELERY_BROKER_URL = env.str('REDIS_URL')
CELERY_BROKER_URL = 'redis://redis:6379/0'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_TIMEZONE = settings.TIME_ZONE

11
config/conf/redis.py Normal file
View File

@@ -0,0 +1,11 @@
from config.env import env
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": env("REDIS_URL"),
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}

View File

@@ -140,3 +140,4 @@ from config.conf.drf_spectacular import *
from config.conf.rest_framework import *
from config.conf.simplejwt import *
from config.conf.celery import *
from config.conf.redis import *