File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -707,14 +707,10 @@ Here's what our template for the env file will looks like:
707
707
[source,python]
708
708
----
709
709
DJANGO_DEBUG_FALSE=1
710
- DJANGO_SECRET_KEY=" {{ secret_key }}"
711
- DJANGO_ALLOWED_HOSTS=" {{ host }}"
710
+ DJANGO_SECRET_KEY={{ secret_key }}
711
+ DJANGO_ALLOWED_HOSTS={{ host }}
712
712
----
713
713
====
714
- // CSANAD: we named the allowed hosts' env variable in plural form, as it's
715
- // named in settings.py but we pass one value, so it feels weird.
716
- //
717
- // I'd suggest DJANGO_ALLOWED_HOSTS="{{ hostname }}"
718
714
719
715
And here's how we use it in the provisioning script:
720
716
@@ -751,6 +747,12 @@ And here's how we use it in the provisioning script:
751
747
752
748
<2> `force: false` means we will only write the file once.
753
749
So after the first time we generate our secret key, it won't change.
750
+ // CSANAD: but it also means any change we make in the .env would not take
751
+ // effect until we manually delete the old superlists.env file from
752
+ // the server.
753
+ // We should mention this, because if the reader makes a mistake
754
+ // in the env file, but then they find it, they won't be able to fix it unless
755
+ // they realize this is why the values don't change. Guess how I learned that :)
754
756
755
757
<3> The `vars` section defines the variables we'll inject into our template.
756
758
You can’t perform that action at this time.
0 commit comments