Fixed urlpatterns so that invalid post urls return 404 instead of 500