Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request.site is None in live_preview #1

Open
Quadric opened this issue Oct 28, 2019 · 1 comment
Open

request.site is None in live_preview #1

Quadric opened this issue Oct 28, 2019 · 1 comment

Comments

@Quadric
Copy link
Contributor

Quadric commented Oct 28, 2019

Hey.

This app is a nice idea and i'd like to use it in my project (and maybe contribute in a future with some improvements) but currently i have a problem with page in "live preview" mode.

The problem is than in template {{ request.site }} returns None when page is rendered by live_preview endpoint. I have no idea where to find a problem.

Wagtail's vanilla "preview" endpoint works well. Do you have any clues?

@KalobTaulien
Copy link
Owner

I dont recall off the top of my head. A quick browse through the code and I suspect it has to do with something in here: https://github.com/KalobTaulien/wagtail-livepreview/blob/master/livepreview/views.py#L154-L158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants