-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 479-support-django42
- Loading branch information
Showing
25 changed files
with
400 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This file is part of the django-environ. | ||
# | ||
# Copyright (c) 2021-2022, Serghei Iakovlev <[email protected]> | ||
# Copyright (c) 2021-2023, Serghei Iakovlev <[email protected]> | ||
# Copyright (c) 2013-2021, Daniele Faraglia <[email protected]> | ||
# | ||
# For the full copyright and license information, please view | ||
|
@@ -12,12 +12,10 @@ | |
|
||
import codecs | ||
import os | ||
import sys | ||
import re | ||
|
||
import sys | ||
from datetime import date | ||
|
||
|
||
PROJECT_DIR = os.path.abspath('..') | ||
sys.path.insert(0, PROJECT_DIR) | ||
|
||
|
@@ -71,7 +69,7 @@ def find_version(meta_file): | |
# The suffix of source filenames. | ||
source_suffix = ".rst" | ||
|
||
# Allow non-local URIs so we can have images in CHANGELOG etc. | ||
# Allow non-local URIs, so we can have images in CHANGELOG etc. | ||
suppress_warnings = [ | ||
"image.nonlocal_uri", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,28 @@ And use it with ``settings.py`` as follows: | |
:start-after: -code-begin- | ||
:end-before: -overview- | ||
|
||
Variables can contain references to another variables: ``$VAR`` or ``${VAR}``. | ||
Referenced variables are searched in the environment and within all definitions | ||
in the ``.env`` file. References are checked for recursion (self-reference). | ||
Exception is thrown if any reference results in infinite loop on any level | ||
of recursion. Variable values are substituted similar to shell parameter | ||
expansion. Example: | ||
|
||
.. code-block:: shell | ||
# shell | ||
export POSTGRES_USERNAME='user' POSTGRES_PASSWORD='SECRET' | ||
.. code-block:: shell | ||
# .env | ||
POSTGRES_HOSTNAME='example.com' | ||
POSTGRES_DB='database' | ||
DATABASE_URL="postgres://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOSTNAME}:5432/${POSTGRES_DB}" | ||
The value of ``DATABASE_URL`` variable will become | ||
``postgres://user:[email protected]:5432/database``. | ||
|
||
The ``.env`` file should be specific to the environment and not checked into | ||
version control, it is best practice documenting the ``.env`` file with an example. | ||
For example, you can also add ``.env.dist`` with a template of your variables to | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This file is part of the django-environ. | ||
# | ||
# Copyright (c) 2021-2022, Serghei Iakovlev <[email protected]> | ||
# Copyright (c) 2021-2023, Serghei Iakovlev <[email protected]> | ||
# Copyright (c) 2013-2021, Daniele Faraglia <[email protected]> | ||
# | ||
# For the full copyright and license information, please view | ||
|
@@ -21,7 +21,7 @@ | |
__copyright__ = 'Copyright (C) 2013-2022 Daniele Faraglia' | ||
"""The copyright notice of the package.""" | ||
|
||
__version__ = '0.10.0' | ||
__version__ = '0.11.0' | ||
"""The version of the package.""" | ||
|
||
__license__ = 'MIT' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.