create initial models and mobile test for mojtaba eshaghi

This commit is contained in:
2025-05-05 15:25:46 +03:30
parent 7e301c14b7
commit ec58d9ef5e
167 changed files with 614 additions and 23 deletions

View File

@@ -45,9 +45,15 @@ INSTALLED_APPS = [
'rest_framework_simplejwt',
'apps.authentication.apps.AuthenticationConfig',
'apps.authorization.apps.AuthorizationConfig',
'apps.captcha_app.apps.CaptchaAppConfig',
'apps.core.apps.CoreConfig',
'apps.herd.apps.HerdAppConfig',
'apps.livestock.apps.LivestockConfig',
'apps.pos_machine.apps.PosMachineConfig',
'apps.tag.apps.TagConfig',
'apps.warehouse.apps.WarehouseConfig',
'rest_captcha',
'captcha',
'apps.captcha_app.apps.CaptchaAppConfig'
]
MIDDLEWARE = [
@@ -108,7 +114,7 @@ REST_FRAMEWORK = {
}
SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=5),
"ACCESS_TOKEN_LIFETIME": timedelta(days=1),
"REFRESH_TOKEN_LIFETIME": timedelta(days=1),
"ROTATE_REFRESH_TOKENS": False,
"BLACKLIST_AFTER_ROTATION": False,

View File

@@ -21,4 +21,5 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('auth/', include('apps.authentication.urls')),
path('', include('apps.captcha_app.api.v1.urls')),
path('', include('apps.core.urls')),
]