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

Invalid Subdomain URL not redirect to default 404 page showing 500 #117

Open
shalushaji opened this issue Aug 12, 2020 · 2 comments
Open

Comments

@shalushaji
Copy link

When accessing an invalid URL in my subdomain .it showing an error 500.https://stackoverflow.com/questions/63014110/django-hosts-how-to-manage-invalid-urls-in-a-subdomain-django-urls-exceptions
how to manage 404 in subdomains

@shaluepixel
Copy link

shaluepixel commented Sep 11, 2020

Issue fixed by using Django custom error views
https://docs.djangoproject.com/en/3.1/topics/http/views/#customizing-error-views

@hadpro24
Copy link

hadpro24 commented Sep 3, 2021

Hey are find the solution for this ? I override correction custum error views but I take 304 redirection.

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

3 participants