Skip to content

Commit cddcf3b

Browse files
committed
add suggested edit on explaining collectstatic
1 parent 3c1bcad commit cddcf3b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

chapter_10_production_readiness.asciidoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ MIDDLEWARE = [
203203
204204
----
205205
====
206+
// CSANAD: I would add a few thoughts on the significance of the order of
207+
// middlewares.
206208

207209
And if you take another manual look at your site after rebuilding the
208210
container, things should look much healthier.
@@ -453,6 +455,10 @@ $ *docker build -t superlists . && docker run \
453455
An FT run (or just looking at the site) reveals that we've had a regression
454456
in our static files.
455457

458+
// CSANAD: worth mentioning there was another clue. in the logs, once Gunicorn
459+
// starts running you can see:
460+
// `UserWarning: No directory at: /src/static/`
461+
456462
[role="small-code"]
457463
[subs="specialcharacters,macros"]
458464
----
@@ -498,7 +504,11 @@ OK
498504
We have a container that we're ready to ship to production!
499505

500506
Find out how in the next exciting installment...
501-
507+
// CSANAD: now would be a good time to check our changes and notice git marked
508+
// src/static as unstaged, so we should update .gitignore accordingly:
509+
// from `static` to `src/static`.
510+
// Or we could add this step to Chapter 09 at "Move all our code into a src
511+
// folder"
502512

503513

504514
=== Configuring logging

0 commit comments

Comments
 (0)