diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index d8260b0..f5d0f9a 100644
a
|
b
|
The URL where requests are redirected after login when the
|
1303 | 1303 | This is used by the :func:`~django.contrib.auth.decorators.login_required` |
1304 | 1304 | decorator, for example. |
1305 | 1305 | |
| 1306 | .. _`note on LOGIN_REDIRECT_URL setting`: |
| 1307 | |
| 1308 | .. note:: |
| 1309 | You can use :func:`~reverse_lazy` to reference |
| 1310 | URLs by their name instead of providing hardcoded value:: |
| 1311 | |
| 1312 | # urls.py |
| 1313 | urlpatterns = i18n_patterns('', |
| 1314 | url(_(r'^home/$'), 'test_app.views.home', name='home'), |
| 1315 | ) |
| 1316 | |
| 1317 | # settings.py |
| 1318 | LOGIN_REDIRECT_URL = reverse_lazy('home') |
| 1319 | |
| 1320 | |
| 1321 | This also works well with :func:`~django.conf.urls.i18n.i18n_patterns`. |
| 1322 | |
1306 | 1323 | .. setting:: LOGIN_URL |
1307 | 1324 | |
1308 | 1325 | LOGIN_URL |
… |
… |
Default: ``'/accounts/login/'``
|
1313 | 1330 | The URL where requests are redirected for login, especially when using the |
1314 | 1331 | :func:`~django.contrib.auth.decorators.login_required` decorator. |
1315 | 1332 | |
| 1333 | .. note:: |
| 1334 | See the `note on LOGIN_REDIRECT_URL setting`_ |
| 1335 | |
1316 | 1336 | .. setting:: LOGOUT_URL |
1317 | 1337 | |
1318 | 1338 | LOGOUT_URL |
… |
… |
Default: ``'/accounts/logout/'``
|
1322 | 1342 | |
1323 | 1343 | LOGIN_URL counterpart. |
1324 | 1344 | |
| 1345 | .. note:: |
| 1346 | See the `note on LOGIN_REDIRECT_URL setting`_ |
| 1347 | |
1325 | 1348 | .. setting:: MANAGERS |
1326 | 1349 | |
1327 | 1350 | MANAGERS |