-
Notifications
You must be signed in to change notification settings - Fork 191
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
Error at root url without trailing slash #793
Comments
@palmitoto Hi! Thanks for reporting this! Do you have some sort of traceback of the error? I can't reproduce it (for example, here https://www.nephila.digital/en/blog , ther's a blog instance of DjangoCMS Blog). |
Hi, thanks for your time! This my stack :
|
This is strange: do you have |
Yes:
|
Do you have some custom context processor trying to resolve urls? Because in any case this should throw a 500 error: it should throw a 404 if it can't resolve urls. Are you able to reproduce this with a fresh djangocms 3.11 and djangocms-blog installation? |
On a fresh install from django-cms boilerplate, i get a 404. So I will compare with my settings to find the error. How do you handle this case (404) on nephila blog? Put a redirection ? |
On nephila blog, both urls works correctly (with or without trailing slash). This should be the case for ALL urls, given that the urlconf is done correctly. In this case the Blog apphook, attached to the page, should leverage all the work, unless I'm missing some configuration that I don't know. |
Thank @protoroto for all the time spent, which has already helped me move forward. |
@palmitoto have you been able to resolve this? I'm facing the same issue after upgrading to Django 4.2, and only getting |
I've come a little closer. My 404 template used the I'm still not sure how to resolve this, since a 404 without navigation isn't of much use. Any detailed ideas what's going here? |
The error was very isolated I did not look further. But recently on a new site we had the same error and the "solution" was to remove the menus from the 404 page... |
I've just encountered the same problem with another (custom-built) apphook. So I'd assume it's not djangocms-blog. I'm going to file an issue in django-cms when I have time (but please go ahead if you'd like to). |
Description
When I go to the blog root page without the trailing slash, I get an Internal Server Error.
Steps to reproduce
Go to the blog root url without the / at the end.
Versions
Python 3.11
Django 4.2.10
django-cms-blog 2
django-cms 3.11
Expected behavior
Redirect to /fr/blog/
Actual behaviour
I get an Internal Server Error :
Report at /fr/blog
Internal Server Error: /fr/blog
Traceback (most recent call last): None
Additional information
I don't have this problem for an article url.
I also don't have the problem if I switch back to Django 3.2.
I also don't have the problem if debug=True
APPENS_SLASH settings are set to True
The text was updated successfully, but these errors were encountered: