File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed
Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 1+ Allow CONTENT_ORIGIN to be None. When None, the base_url for Distributions is a relative path.
Original file line number Diff line number Diff line change 44from django .core .checks import Error as CheckError , Warning as CheckWarning , register
55
66
7- @register (deploy = True )
8- def content_origin_check (app_configs , ** kwargs ):
9- messages = []
10- if getattr (settings , "CONTENT_ORIGIN" , "UNREACHABLE" ) == "UNREACHABLE" :
11- messages .append (
12- CheckError (
13- "CONTENT_ORIGIN is a required setting but it was not configured. This may be "
14- "caused by invalid read permissions of the settings file. Note that "
15- "CONTENT_ORIGIN is set by the installation automatically." ,
16- id = "pulpcore.E001" ,
17- )
18- )
19- return messages
20-
217
228@register (deploy = True )
239def secret_key_check (app_configs , ** kwargs ):
Original file line number Diff line number Diff line change 263263DRF_ACCESS_POLICY = {"reusable_conditions" : ["pulpcore.app.global_access_conditions" ]}
264264
265265# This is a sentinal value for deploy checks, since we don't want to set a default one.
266- CONTENT_ORIGIN = "UNREACHABLE"
266+ CONTENT_ORIGIN = None
267267CONTENT_PATH_PREFIX = "/pulp/content/"
268268
269269API_APP_TTL = 120 # The heartbeat is called from gunicorn notify (defaulting to 45 sec).
You can’t perform that action at this time.
0 commit comments