question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Giving 404 while submitting the form

See original GitHub issue

I creted a form using the documentation, but I didn’t do any configuration steps. When I submit my form, its giving me 404.

"POST /en/forms/submit/ HTTP/1.1" 404 3307"

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
vindemasicommented, Mar 4, 2017

@zh0uquan

i was using something like:

urlpatterns = [ … ]

urlpatterns += i18n_patterns(‘’, url(r’^admin/‘, include(admin.site.urls)), url(r’^‘, include(‘djangocms_forms.urls’)), url(r’^', include(‘cms.urls’)), )

and the error happens. Then I’ve moved the forms urls like this:

urlpatterns = [ … url(r’^', include(‘djangocms_forms.urls’)), ]

urlpatterns += i18n_patterns(‘’, url(r’^admin/‘, include(admin.site.urls)), url(r’^', include(‘cms.urls’)), )

(note the forms.urls now is into urlspatterns instead i18n_patterns.

This solved my issue.

0reactions
zh0uquancommented, Mar 4, 2017

@vindemasi cool thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Easily fix WordPress POST and REQUEST 404 error on form ...
If you have been trying to submit a form in WordPress and you are receiving a 404 error page, well the chances of...
Read more >
Form submit leads to 404 page not found - Laracasts
hello I make a form to upload for data in mysql in Laravel but when I click on the submit button then it...
Read more >
When I submit my form, I get a file not found (404) error!
Incorrect 'action' URL in your <form> tag: The second most common mistake that can lead to a 404 not found error is the...
Read more >
Why does my PHP form go directly to a 404 error page? It won ...
A 404 error means that the file you asked for (something like “index.html” at the end of a URL is asking to be...
Read more >
Submitting a form gives a 404 Page not found - Support
additionally, a quick search reveals that a ton of people have posted (and gotten answers) on how to fix 404 errors with their...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found