File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77from openedx_authz import ROOT_DIRECTORY
88
9- # Add Casbin configuration
10- CASBIN_MODEL = os .path .join (ROOT_DIRECTORY , "engine" , "config" , "model.conf" )
11- # Redis host and port are temporarily loaded here for the MVP
12- REDIS_HOST = "redis"
13- REDIS_PORT = 6379
9+
10+ def plugin_settings (settings ): # pylint: disable=unused-argument
11+ """
12+ Configure plugin settings for Open edX.
13+ This function is called by the Open edX plugin system to configure
14+ the Django settings for this plugin.
15+
16+ Args:
17+ settings: The Django settings object
18+ """
19+
20+
1421DATABASES = {
1522 "default" : {
1623 "ENGINE" : "django.db.backends.sqlite3" ,
5562]
5663
5764SECRET_KEY = "test-secret-key"
58- CASBIN_WATCHER_ENABLED = False
65+
5966USE_TZ = True
67+
6068ROOT_URLCONF = "openedx_authz.urls"
69+
70+ # Casbin configuration
71+ CASBIN_MODEL = os .path .join (ROOT_DIRECTORY , "engine" , "config" , "model.conf" )
72+ CASBIN_WATCHER_ENABLED = False
73+ REDIS_HOST = "redis"
74+ REDIS_PORT = 6379
You can’t perform that action at this time.
0 commit comments