-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
38 lines (33 loc) · 1.33 KB
/
config.py
File metadata and controls
38 lines (33 loc) · 1.33 KB
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
29
30
31
32
33
34
35
36
37
38
import os
# Statement for enabling the development environment
DEBUG = True
# Define the application directory
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
WORKDIR = os.path.join(os.path.sep, "var", "NFT-TrendFinder")
MEDIA_FOLDER = os.path.join(WORKDIR, "image_storage", "images")
MEDIA_FOLDER_INIT = os.path.join(os.path.sep, "init_images", "nft_finder_temp_images", "images")
TXT_MEDIA_FOLDER = os.path.join(WORKDIR, "image_storage")
# DALLE paths
DALLE_FOLDER = os.path.join(os.path.sep, 'var', 'dalle')
DALLE_ENV = os.path.join(WORKDIR, 'dalleEnv', 'bin', 'activate')
# CELERY MONGO SETTINGS
MONGODB_DB = 'nft-finder'
MONGODB_CONNECTION_STRING = 'mongodb://dataviewer:Capybara123@mongo:27017'
# Application threads. A common general assumption is
# using 2 per available processor cores - to handle
# incoming requests using one and performing background
# operations using the other.
THREADS_PER_PAGE = 2
# Enable protection agains *Cross-site Request Forgery (CSRF)*
#CSRF_ENABLED = True
# Celery settings
ACCEPT_CONTENT = ['json']
TASK_SERIALIZER = 'json'
RESULT_SERIALIZER = 'json'
# Use a secure, unique and absolutely secret key for
# signing the data.
#CSRF_SESSION_KEY = 'e16d77a31be1a1937524214f74f20a5b'
# Secret key for signing cookies
SECRET_KEY = '9febb642f19b6d58f5a92ba405252f65'
# Cache setting
CACHE_TYPE = "SimpleCache"