Skip to content

Commit 4a5da3a

Browse files
committed
fix paths to mgmt command files
1 parent 163fd5b commit 4a5da3a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

chapter_21_server_side_debugging.asciidoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ whether we're running against the staging server or not.
216216
Let's save the `staging_server` variable on `self` in _base.py_:
217217

218218
[role="sourcecode"]
219-
.functional_tests/base.py (ch21l009)
219+
.src/functional_tests/base.py (ch21l009)
220220
====
221221
[source,python]
222222
----
@@ -233,7 +233,7 @@ email server, using the horrifically tortuous Python standard library POP3
233233
client:
234234

235235
[role="sourcecode"]
236-
.functional_tests/test_login.py (ch21l010)
236+
.src/functional_tests/test_login.py (ch21l010)
237237
====
238238
[source,python]
239239
----
@@ -298,7 +298,7 @@ local and staging tests:
298298

299299

300300
[role="sourcecode small-code"]
301-
.functional_tests/test_login.py (ch21l011-1)
301+
.src/functional_tests/test_login.py (ch21l011-1)
302302
====
303303
[source,diff]
304304
----
@@ -341,7 +341,7 @@ And then modifications involving using that variable and calling our new helper
341341
function:
342342

343343
[role="sourcecode small-code"]
344-
.functional_tests/test_login.py (ch21l011-2)
344+
.src/functional_tests/test_login.py (ch21l011-2)
345345
====
346346
[source,diff]
347347
----
@@ -460,17 +460,17 @@ will do all that path mangling for you. They live in a folder called
460460

461461
[subs=""]
462462
----
463-
$ <strong>mkdir -p functional_tests/management/commands</strong>
464-
$ <strong>touch functional_tests/management/__init__.py</strong>
465-
$ <strong>touch functional_tests/management/commands/__init__.py</strong>
463+
$ <strong>mkdir -p src/functional_tests/management/commands</strong>
464+
$ <strong>touch src/functional_tests/management/__init__.py</strong>
465+
$ <strong>touch src/functional_tests/management/commands/__init__.py</strong>
466466
----
467467

468468
The boilerplate in a management command is a class that inherits from
469469
`django.core.management.BaseCommand`, and that defines a method called
470470
`handle`:
471471

472472
[role="sourcecode"]
473-
.functional_tests/management/commands/create_session.py
473+
.src/functional_tests/management/commands/create_session.py
474474
====
475475
[source,python]
476476
----
@@ -555,7 +555,7 @@ when we're on the local server,
555555
and make it run the management command on the staging server if we're on that:
556556

557557
[role="sourcecode"]
558-
.functional_tests/test_my_lists.py (ch21l016)
558+
.src/functional_tests/test_my_lists.py (ch21l016)
559559
====
560560
[source,python]
561561
----
@@ -590,7 +590,7 @@ when we populate `self.test_server`:
590590

591591

592592
[role="sourcecode"]
593-
.functional_tests/base.py (ch21l017)
593+
.src/functional_tests/base.py (ch21l017)
594594
====
595595
[source,python]
596596
----
@@ -626,7 +626,7 @@ just need to let it know the "host string" you're connecting to:
626626

627627

628628
[role="sourcecode"]
629-
.functional_tests/server_tools.py (ch18l018)
629+
.src/functional_tests/server_tools.py (ch18l018)
630630
====
631631
[source,python]
632632
----
@@ -662,7 +662,7 @@ cryptographically valid for the server:
662662

663663

664664
[role="sourcecode small-code"]
665-
.functional_tests/server_tools.py (ch18l019)
665+
.src/functional_tests/server_tools.py (ch18l019)
666666
====
667667
[source,python]
668668
----

0 commit comments

Comments
 (0)