Month: March 2018

Django DetailView with pagination for related objects

This is an example of a DetailView of a User that can have a paginated list of Purchases:

In the template file, the pagination needs to done similar to the following example (using django-bootstrap3):

Github gist Read More

Export object_list of a django-filters FilterView to CSV

This is a simple way to allow users to export the data they have just filtered using django-filterĀ as CSV.

Github gist Read More

Running multiple Django projects on one Apache instance with mod_wsgi

I did not yet find a page with a concise but complete description of how to run multiple Django instances/projects on one server with Apache. This method is similar to the one in the Django docs, but the docs version does not run the Django instance in a daemon process, therefore it does not work Read More