You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
447 B
Plaintext
11 lines
447 B
Plaintext
import os, random, string
|
|
|
|
|
|
class Config:
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or \
|
|
''.join(random.choices(string.ascii_letters, k=20))
|
|
DATA_DIR = os.environ.get('DATA_DIR') or os.path.join(os.path.dirname(__file__), 'data')
|
|
TMP_DIR = os.environ.get('DATA_DIR') or os.path.join(os.path.dirname(__file__), 'tmp')
|
|
MAX_LENGTH = os.environ.get('MAX_LENGTH') or 180
|
|
KBITS = os.environ.get('KBITS') or 128
|