-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Preview draft gives Internal Server Error #195
Comments
Hi @wulaaf, thanks for reaching out to us, Could you please describe with more detail the process you are following to get that error? |
Sure! I followed the instructions on the docs to install puput. Everything worked fine on localhost with ./manage.py runserver. However, when I moved it to a staging website where I use gunicorn to run django with nginx. Publishing and viewing the page works fine, however, when I PREVIEW a draft or an edited post, I get the following errors:
I'm using Wagtail 2.4. |
Hi @wulaaf, can you try with version that I released yesterday? |
Hi @marctc, I have the same issue even with 1.0.4 (wagtail 2.4). When I click on Preview (for a post that was created not by the admin but by a user that is in groups Editors and Moderators) on production server from a page like /blog_admin/pages/16/edit/ i got 500 `Internal Server Error: /blog_admin/pages/16/edit/preview/ NoReverseMatch at /blog_admin/pages/16/edit/preview/ `Traceback: File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/response.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/response.py" in rendered_content File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/backends/django.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in _render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render_annotated File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/loader_tags.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in _render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render_annotated File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/loader_tags.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render_annotated File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/defaulttags.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render_annotated File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/loader_tags.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in _render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/base.py" in render_annotated File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/template/library.py" in render File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/wagtail/contrib/routable_page/templatetags/wagtailroutablepage_tags.py" in routablepageurl File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/wagtail/contrib/routable_page/models.py" in reverse_subpage File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/urls/resolvers.py" in reverse File "/home/twitterapp/Env/twitterapp/lib/python3.6/site-packages/django/urls/resolvers.py" in _reverse_with_prefix Exception Type: NoReverseMatch at /blog_admin/pages/16/edit/preview/ |
Can you check if this is related to #122? |
Everything works perfectly but previewing a draft gives an Internal Server Error.
Am I doing something wrong or is that functionality not built yet?
The text was updated successfully, but these errors were encountered: