FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
fastapi-admin/fastapi_admin/constants.py at dev · Medical-FastAPI/fastapi-admin · GitHub
Medical-FastAPI
fastapi-admin
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
fastapi-admin
/
fastapi_admin
/
constants.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 353 Bytes
Breadcrumbs
fastapi-admin
/
fastapi_admin
/
constants.py
Copy path
File metadata and controls
13 lines (11 loc) · 353 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
import
os
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
# time format
DATETIME_FORMAT
=
"%Y-%m-%d %H:%M:%S"
DATE_FORMAT
=
"%Y-%m-%d"
DATETIME_FORMAT_MOMENT
=
"YYYY-MM-DD HH:mm:ss"
DATE_FORMAT_MOMENT
=
"YYYY-MM-DD"
# redis cache
CAPTCHA_ID
=
"captcha:{captcha_id}"
LOGIN_ERROR_TIMES
=
"login_error_times:{ip}"
LOGIN_USER
=
"login_user:{token}"
Back
|
FazBrowse Home
|
New Git URL