Skip to content

Commit 98d0b73

Browse files
committed
fix typos and Django documentation version
1 parent 144dce9 commit 98d0b73

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chapter_10_production_readiness.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Environment variables also have the advantage of working for non-Django stuff to
262262

263263
==== Setting DEBUG=True and SECRET_KEY
264264

265-
There's lots of ways you might do this.
265+
There are lots of ways you might do this.
266266
Here's what I propose; it may seem a little fiddly,
267267
but I'll provide a little justification for each choice.
268268
Let them be an inspiration (but not a template) for your own choices!
@@ -306,7 +306,7 @@ TIP: Better to fail hard than allow a typo in an environment variable name to
306306

307307
==== Setting environment variables inside the Dockerfile
308308

309-
Now let's set that environment variable in our Dockerfile using then `ENV` directive:
309+
Now let's set that environment variable in our Dockerfile using the `ENV` directive:
310310

311311
[role="sourcecode"]
312312
.Dockerfile (ch10l006)
@@ -402,7 +402,7 @@ image::images/search-results-400-bad-request.png["Duckduckgo search results with
402402
`ALLOWED_HOSTS` is a security setting
403403
designed to reject requests that are likely to be forged, broken or malicious
404404
because they don't appear to be asking for your site
405-
(HTTP request contain the address they were intended for in a header called "Host").
405+
(HTTP requests contain the address they were intended for in a header called "Host").
406406

407407
By default, when DEBUG=True, `ALLOWED_HOSTS` effectively allows _localhost_,
408408
our own machine, so that's why it was working OK until now.
@@ -564,7 +564,7 @@ but it's more of shock to see that they are no longer appearing in the terminal
564564
If you're like me you might find yourself wondering if we really _did_ see them earlier
565565
and starting to doubt your own sanity.
566566
But the explanation is that Django's
567-
https://docs.djangoproject.com/en/5.0/ref/logging/#default-logging-configuration[default logging configuration]
567+
https://docs.djangoproject.com/en/4.2/ref/logging/#default-logging-configuration[default logging configuration]
568568
changes when DEBUG is turned off:
569569

570570
This means we need to interact with the standard library's `logging` module,
@@ -577,7 +577,7 @@ but sometimes you just wanna say "just print stuff to stdout pls",
577577
and you wish that configuring the simplest thing was a little easier].
578578

579579
Here's pretty much the simplest possible logging config
580-
which just prints everything to the console (ie standard out).
580+
which just prints everything to the console (i.e. standard out).
581581

582582

583583
[role="sourcecode"]

0 commit comments

Comments
 (0)