#1 Open
tiktuk tiktuk
akhayyat akhayyat

Submit csrf token with the request for server side preview.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r default https://bitbucket.org/tiktuk/mezzanine-pagedown
hg merge 1b3429d9c6e0
hg commit -m 'Merged in tiktuk/mezzanine-pagedown (pull request #1)'
  1. Tuk Bredsdorff avatarTuk Bredsdorff

Django was returning a 503 error when it received the post to the preview url.

Comments (5)

  1. Ahmad Khayyat repo owner

    I'd really like to get to the bottom of this. On a clean-history browser, I still don't get any errors without this patch. In fact, django-debug-toolbar shows the csrftoken cookie variable in the Request Vars section, and the dev server keeps saying:

    ... "POST /pagedown/preview/ HTTP/1.1" 200 ...

    Can you publish a small test repository (perhaps a mezzanine demo site) in which this patch is required?

  2. Tuk Bredsdorff author

    Sure, I've PM'ed you the URL. But actually the pagedown code never gets that far because of #11 so now you get a chance to meet that one in person as well. Unless your browser is radically different than mine ;) .

    So check that one out if you don't mind, and I will work around it afterwards so we can proceed with this one.

  3. Ahmad Khayyat repo owner

    I am not sure whether you got my message. The URL you sent is for a live site. I'd need a source repository to be able to debug the issues and see the error traces.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.