You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Wagtail admin I created a Basket Page, with the slug checkout.
Upon requesting /en/checkout/ (I'm using wagtailtrans, hence the prepended language) I get a TemplateError.
TemplateDoesNotExist at /en/checkout/
checkout/checkout.html
Because it's trying to load CheckoutView from the checkout app in Longclaw.
May be I should've mentioned that the page type was not called Checkout, but Basket.
The problem is that because longclaw urls are before the ones of wagtail, the path '/en/checkout' was caught in Longclaw, while it should've been passed on to Wagtail.
@jghyllebert
You are saying you are trying to create your own page with the same url as one existing in longclaw? (checkout).
This won't work since, as you found out, longclaw is already defining the 'checkout' url.
You can opt to not include the checkout urls of longclw by selectively including urls as here: https://github.com/JamesRamm/longclaw/blob/master/longclaw/urls.py
But since checkout is a key functionality of longclaw (it being an e-commerce app) I'm not sure why you would want to do this.
Maybe if you explain your use case with regards to wanting to create your own 'checkout' slug, we can create a more targetted issue.
Versions
Description
In the Wagtail admin I created a Basket Page, with the slug
checkout
.Upon requesting
/en/checkout/
(I'm using wagtailtrans, hence the prepended language) I get a TemplateError.Because it's trying to load
CheckoutView
from thecheckout
app in Longclaw.This is resolved by switching the url positions
But then none of the api endpoints in Longclaw work.
as indicated in #235, I'm trying to implement Longclaw in an existing project. So I might have missed something.
The text was updated successfully, but these errors were encountered: