# Django form redirects to 404

**URL:** <https://forum.djangoproject.com/t/django-form-redirects-to-404/29277>\
**Category:** Getting Started\
**Created:** [March 20, 2024, 4:58am UTC](https://forum.djangoproject.com/t/django-form-redirects-to-404/29277 "2024-03-20T04:58:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nizumzen](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/nizumzen/32/16119_2.png) [@Nizumzen](https://forum.djangoproject.com/u/Nizumzen)\
**Post date:** [March 20, 2024, 4:58am UTC](https://forum.djangoproject.com/t/django-form-redirects-to-404/29277/1 "2024-03-20T04:58:11Z")

</div>

I have a user registration form that when filled in initially it went to /user/ but no URL exists there and it returned a 404. So instead of doing that I made a view at that URL but then it just started to look at /user/account/ and then that returns a 404.

I have set up set\_success\_url to the URL that I want the form to redirect too but I’m lost.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 20, 2024, 12:04pm UTC](https://forum.djangoproject.com/t/django-form-redirects-to-404/29277/2 "2024-03-20T12:04:53Z")

</div>

Welcome @Nizumzen !

In order to help you, we’re going to need a lot more information. Please post the view that is causing this issue and the contents of your urls.py file.

Note: When posting code here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted.
