[Fixed]-Best practice in Django to send request form the template to the database in order to download data

1👍

This question is more about building web apps in general more than it is Django specific. It really comes down to how you want to provide an experience to your user. If you want to go the ajax route, that’s fine. If you want to let the user click the submit button and have it load another page, that’s fine too. It just depends on what your end goal is. Sometimes it’s easier to take the simple (non-ajax) approach first, and then if you feel a need to use ajax, you can always transition later. Using Django class-based views makes the non-ajax approach really simple.

Leave a comment