pivotal-energy-solutions / django-datatable-view

Server-side datatable representations for Django querysets for automatic rendering in templates
Apache License 2.0
347 stars 141 forks source link

Can't run in production - Ajax error #235

Closed jadeidev closed 5 years ago

jadeidev commented 5 years ago

Hello, thank you for creating this awesome package. I was able to make it work really well with my Django local server. However, when I try to run it with the production I get the following error: image

question is why is it working in a local server but not on the production server? (note that jquery.dataTables.min.js, dataTables.bootstrap4.min.js, datatableview.js are all in the static folder and working)

jadeidev commented 5 years ago

Ok, I found the root cause. If anyone would like to know: The issue was with Windows IIS and request filtering module which is configured to deny a request where the query string is too long.
I added the following to web.config

<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxQueryString="32768"/>
    </requestFiltering>
  </security>
</system.webServer>