create initial models and mobile test for mojtaba eshaghi
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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')),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user