jazzband / django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.
http://django-hosts.rtfd.org
Other
982 stars 106 forks source link

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

Open shalushaji opened 4 years ago

shalushaji commented 4 years ago

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 commented 4 years ago

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

hadpro24 commented 3 years ago

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