Skip to content

Commit 4286b99

Browse files
Formatting .env file documentation
1 parent 695abeb commit 4286b99

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ pip install python-dotenv --upgrade
1919

2020
# Usage
2121

22+
## Format
23+
You define your environment variables with a simple key=value list.
24+
25+
<pre>
26+
SECRET_KEY="your_secret_key"
27+
DATABASE_PASSWORD="your_database_password"
28+
...
29+
</pre>
30+
31+
When using django-configurations, the environment variables have a default
32+
preposition DJANGO_ .
33+
This is only true for **default configuration**, which you can overwrite
34+
with *environ_prefix* and *environ_name* parameters.
35+
36+
<pre>
37+
DJANGO_SECRET_KEY="your_secret_key"
38+
DJANGO_DATABASE_PASSWORD="your_database_password"
39+
...
40+
</pre>
41+
2242
## Command-line interface
2343

2444
<pre>

0 commit comments

Comments
 (0)