You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Settings: simplify all the settings removing a whole old layer (dev) (#9978)
* Settings: simplify all the settings removing a whole old layer (`dev`)
We are not using `settings/dev.py` since we started using
Docker (`settings/docker_compose.py`).
However, we never updated this code.
This commit removes the extra `Dev` class layer by moving the required (and
still used settings) into `settings/test.py` and `settings/docker_compose.py`
since they were inheriting from `settings/dev.py`.
* Settings: add missing setting for test
* Settings: missing on web
* Setting: missing on celery
* Settings: missing on proxito
* Settings: updates for docs/
* Docs: remove outdated and complex code and dependencies (#9981)
* Docs: remove outdated and complex code
This commit reduces the complexity of the documentation environment by removing
the requirement of having Django installed and loaded to build the docs.
* Remove the `djangodocs` and `doc_extensions`: they load the whole Django
application unnecesarily. We need to have a bunch of requirements installed just
because of this.
* Remove defaults from "Interesting settings" because all the default were
wrong. The Django extension was loading an invalid set of settings. This page
could be completely removed as well probably.
* Remove `featureflag` role because of the same reason (loads a whole Django
project). We were using it only to show a small description of the feature
flags. I wrote that text directly in the page. Feature flags are deprecated and
this page will probably deleted soon as well.
* Remove `buildpyversions` role also. Same reason. Manually wrote the versions
supported on each Docker image. This is used for the legacy images, tho. They
won't change since we don't maintain them anymore.
* Docs: reduce requirements drastically
Since we don't depend on Django anymore we can remove the `-r pip.txt`
dependency from the documentation.
This makes the documentation just to rely on Sphinx and some other extensions
only simplifying the environment a lot and running fast.
* Docs: don't install `pip.txt`
* Docs: remove missing `djangosetting` role
* Solve minimal merge conflicts
Copy file name to clipboardExpand all lines: docs/dev/settings.rst
-32
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ Interesting Settings
4
4
DOCKER_LIMITS
5
5
-------------
6
6
7
-
Default: :djangosetting:`DOCKER_LIMITS`
8
-
9
7
A dictionary of limits to virtual machines. These limits include:
10
8
11
9
time
@@ -27,8 +25,6 @@ SLUMBER_USERNAME
27
25
.. Don't set this automatically, lest we leak something. We are using the dev
28
26
settings in the conf.py, but it's probably a good idea to be safe.
29
27
30
-
Default: ``test``
31
-
32
28
The username to use when connecting to the Read the Docs API. Used for hitting the API while building the docs.
33
29
34
30
SLUMBER_PASSWORD
@@ -37,63 +33,47 @@ SLUMBER_PASSWORD
37
33
.. Don't set this automatically, lest we leak something. We are using the dev
38
34
settings in the conf.py, but it's probably a good idea to be safe.
39
35
40
-
Default: ``test``
41
-
42
36
The password to use when connecting to the Read the Docs API. Used for hitting the API while building the docs.
43
37
44
38
USE_SUBDOMAIN
45
39
---------------
46
40
47
-
Default: :djangosetting:`USE_SUBDOMAIN`
48
-
49
41
Whether to use subdomains in URLs on the site, or the Django-served content.
50
42
When used in production, this should be ``True``, as Nginx will serve this content.
51
43
During development and other possible deployments, this might be ``False``.
52
44
53
45
PRODUCTION_DOMAIN
54
46
------------------
55
47
56
-
Default: :djangosetting:`PRODUCTION_DOMAIN`
57
-
58
48
This is the domain that gets linked to throughout the site when used in production.
59
49
It depends on `USE_SUBDOMAIN`, otherwise it isn't used.
60
50
61
51
RTD_INTERSPHINX_URL
62
52
-------------------
63
53
64
-
Default: :djangosetting:`RTD_INTERSPHINX_URL`
65
-
66
54
This is the domain that is used to fetch the intersphinx inventory file.
67
55
If not set explicitly this is the ``PRODUCTION_DOMAIN``.
68
56
69
57
DEFAULT_PRIVACY_LEVEL
70
58
---------------------
71
59
72
-
Default: :djangosetting:`DEFAULT_PRIVACY_LEVEL`
73
-
74
60
What privacy projects default to having. Generally set to `public`. Also acts as a proxy setting for blocking certain historically insecure options, like serving generated artifacts directly from the media server.
75
61
76
62
INDEX_ONLY_LATEST
77
63
-----------------
78
64
79
-
Default: :djangosetting:`INDEX_ONLY_LATEST`
80
-
81
65
In search, only index the `latest` version of a Project.
82
66
83
67
PUBLIC_DOMAIN
84
68
-------------
85
69
86
-
Default: :djangosetting:`PUBLIC_DOMAIN`
87
-
88
70
A special domain for serving public documentation.
89
71
If set, public docs will be linked here instead of the `PRODUCTION_DOMAIN`.
90
72
91
73
92
74
PUBLIC_DOMAIN_USES_HTTPS
93
75
------------------------
94
76
95
-
Default: ``False``
96
-
97
77
If ``True`` and ``PUBLIC_DOMAIN`` is set, that domain will default to
98
78
serving public documentation over HTTPS. By default, documentation is
99
79
served over HTTP.
@@ -102,16 +82,12 @@ served over HTTP.
102
82
ALLOW_ADMIN
103
83
-----------
104
84
105
-
Default: :djangosetting:`ALLOW_ADMIN`
106
-
107
85
Whether to include `django.contrib.admin` in the URL's.
0 commit comments