Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 355cd5b

Browse files
committed
[book] [routing] reworded the note about generating URLs in console
1 parent da8b46f commit 355cd5b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

book/routing.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,11 +1260,10 @@ From a template, it looks like this:
12601260

12611261
.. note::
12621262

1263-
The host that's used when generating an absolute URL is the host of
1264-
the current ``Request`` object. This is detected automatically. But if
1265-
you generate absolute URLs for scripts run from the command line, this
1266-
won't work. But don't worry! Just see :doc:`/cookbook/console/sending_emails`
1267-
for details.
1263+
The host that's used when generating an absolute URL is automatically
1264+
detected using the current ``Request`` object. When generating absolute
1265+
URLs from outside the web context (for instance in a console command) this
1266+
won't work. See :doc:`/cookbook/console/sending_emails` for details.
12681267

12691268
Summary
12701269
-------

0 commit comments

Comments
 (0)