2021-10-15 03:25:38 -05:00
|
|
|
"""
|
|
|
|
(Being DEPRECATED) django settings preparation.
|
|
|
|
|
|
|
|
This is mostly DEPRECATED at this point and any new settings should be directly
|
|
|
|
defined in mainsite/settings.
|
|
|
|
"""
|
2018-11-08 19:45:21 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
2020-04-14 10:45:36 -05:00
|
|
|
PEERINGDB_VERSION = getattr(settings, "PEERINGDB_VERSION", "")
|
2021-01-13 20:35:07 +00:00
|
|
|
|
|
|
|
# TODO - move these out of peeringdb.settings
|
2019-12-05 16:57:52 +00:00
|
|
|
RDAP_URL = getattr(settings, "PEERINGDB_RDAP_URL", "https://rdap.db.ripe.net/")
|
|
|
|
RDAP_LACNIC_APIKEY = getattr(settings, "PEERINGDB_RDAP_LACNIC_APIKEY", None)
|
|
|
|
RDAP_RECURSE_ROLES = getattr(
|
|
|
|
settings, "PEERINGDB_RDAP_RECURSE_ROLES", ["administrative", "technical"]
|
|
|
|
)
|
2021-01-13 20:35:07 +00:00
|
|
|
RDAP_SELF_BOOTSTRAP = getattr(settings, "RDAP_SELF_BOOTSTRAP")
|
|
|
|
RDAP_BOOTSTRAP_DIR = getattr(settings, "RDAP_BOOTSTRAP_DIR")
|
|
|
|
RDAP_IGNORE_RECURSE_ERRORS = getattr(settings, "RDAP_IGNORE_RECURSE_ERRORS")
|
|
|
|
|
2019-12-05 16:57:52 +00:00
|
|
|
TUTORIAL_MODE = getattr(settings, "TUTORIAL_MODE", False)
|
2020-01-08 13:29:58 -06:00
|
|
|
RELEASE_ENV = getattr(settings, "RELEASE_ENV", "dev")
|
|
|
|
SHOW_AUTO_PROD_SYNC_WARNING = getattr(settings, "SHOW_AUTO_PROD_SYNC_WARNING", False)
|
2019-12-05 16:57:52 +00:00
|
|
|
AUTO_APPROVE_AFFILIATION = getattr(settings, "AUTO_APPROVE_AFFILIATION", False)
|
|
|
|
AUTO_VERIFY_USERS = getattr(settings, "AUTO_VERIFY_USERS", False)
|
|
|
|
MAINTENANCE_MODE_LOCKFILE = getattr(
|
|
|
|
settings, "MAINTENANCE_MODE_LOCKFILE", "maintenance.lock"
|
|
|
|
)
|