-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
28 lines (26 loc) · 894 Bytes
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
This file is used to configure the ORM settings & API Configurations.
Please do not store sensitive information in this file, this file is not for storing tokens and secret keys.
"""
import os
from core.extensions.authentication import AscenderAuthenticationFramework
TORTOISE_ORM = {
"connections": {
"default": {
"engine": "tortoise.backends.sqlite",
"credentials": {
"file_path": "database.db" # Replace with your SQLite database file path
}
}
},
"apps": {
"models": {
"models": [AscenderAuthenticationFramework.use_authentication_database(), "aerich.models", "entities.chat", "entities.message"], # Replace with the path to your models module
"default_connection": "default"
}
}
}
ORIGINS = [
"*",
]
BASE_PATH = os.path.dirname(os.path.abspath(__file__))