project structure and database
This commit is contained in:
13
constants.py
Normal file
13
constants.py
Normal file
@ -0,0 +1,13 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
DOMAIN_NAME = "crm.logidex.ru"
|
||||
API_ROOT = "/api"
|
||||
|
||||
APP_PATH = (
|
||||
os.path.dirname(sys.executable)
|
||||
if getattr(sys, "frozen", False)
|
||||
else os.path.dirname(__file__)
|
||||
)
|
||||
|
||||
STATIC_PATH = os.path.join(APP_PATH, "static")
|
||||
Reference in New Issue
Block a user