2013-12-11 17:08:21 +01:00
|
|
|
# Django settings for zulip project.
|
2014-10-28 16:54:54 +01:00
|
|
|
########################################################################
|
|
|
|
# Here's how settings for the Zulip project work:
|
2013-09-24 20:28:28 +02:00
|
|
|
#
|
2020-06-08 03:44:48 +02:00
|
|
|
# * configured_settings.py imports default_settings.py, which contains
|
|
|
|
# default values for settings configurable in prod_settings.py.
|
|
|
|
#
|
|
|
|
# * configured_settings.py imports prod_settings.py, and any site-specific
|
|
|
|
# configuration belongs there. The template for prod_settings.py is
|
|
|
|
# prod_settings_template.py.
|
|
|
|
#
|
2020-06-08 03:58:37 +02:00
|
|
|
# * computed_settings.py contains non-site-specific and settings
|
|
|
|
# configuration for the Zulip Django app.
|
2016-06-16 08:44:01 +02:00
|
|
|
#
|
2017-11-16 19:51:44 +01:00
|
|
|
# See https://zulip.readthedocs.io/en/latest/subsystems/settings.html for more information
|
2016-06-16 08:44:01 +02:00
|
|
|
#
|
2014-10-28 16:54:54 +01:00
|
|
|
########################################################################
|
2021-07-17 12:25:08 +02:00
|
|
|
import django_stubs_ext
|
|
|
|
|
|
|
|
# Monkey-patch certain types that are declared as generic types
|
|
|
|
# generic in django-stubs, but not (yet) as generic types in Django
|
|
|
|
# itself. This is necessary to ensure type references like
|
|
|
|
# django.db.models.Lookup[int] work correctly at runtime.
|
|
|
|
django_stubs_ext.monkeypatch()
|
2020-06-08 03:44:48 +02:00
|
|
|
|
2020-06-11 02:53:32 +02:00
|
|
|
from .configured_settings import * # noqa: F401,F403 isort: skip
|
|
|
|
from .computed_settings import * # noqa: F401,F403 isort: skip
|
2020-06-08 03:44:48 +02:00
|
|
|
|
2020-06-08 03:58:37 +02:00
|
|
|
# Do not add any code after these wildcard imports! Add it to
|
|
|
|
# computed_settings instead.
|