kopia lustrzana https://github.com/wagtail/wagtail
cbabc3d9c7
When building a dummy request, you can now pass in the original request object to add additional information to the dummy. Currently, that includes the following headers: REMOTE_ADDR HTTP_X_FORWARDED_FOR HTTP_COOKIE HTTP_USER_AGENT More may be added later. This changes ensures that middleware which work on the client IP aren't flumuxed by its absense, and also makes it possible for previews to be rendered as the logged in user (they had previously been rendered using an AnnonymousUser). Because the user's logged in state is now detectable in a Page previews, the Wagtail userbar now hides itself explicitly during previews, rather than relying on the fact that previews used to be built with AnonymousUser. |
||
---|---|---|
.. | ||
0.4.1.rst | ||
0.4.rst | ||
0.5.rst | ||
0.6.rst | ||
0.7.rst | ||
0.8.1.rst | ||
0.8.3.rst | ||
0.8.4.rst | ||
0.8.5.rst | ||
0.8.6.rst | ||
0.8.7.rst | ||
0.8.8.rst | ||
0.8.10.rst | ||
0.8.rst | ||
1.0.rst | ||
1.1.rst | ||
1.2.rst | ||
1.3.1.rst | ||
1.3.rst | ||
1.4.1.rst | ||
1.4.2.rst | ||
1.4.3.rst | ||
1.4.4.rst | ||
1.4.5.rst | ||
1.4.rst | ||
1.5.1.rst | ||
1.5.2.rst | ||
1.5.rst | ||
1.6.rst | ||
index.rst |