How to Export Excel File With Django

Tutorial Link –

In this tutorial, you will learn how to Export Excel Spreadsheet with Django. You will learn how to do read-write operations on excel sheets. Styling Excel spreadsheet with XLWT Library. And writing to Existing Excel Workbook using XLWT.


  1. Create a folder and put all the files inside it.
  2. Create a virtual environtment – virtualenv env
  3. Activate VirtualENV – source env/bin/activate
  4. Run requirements.txt – pip3 install -r requirements.txt
  5. Run the Application – python3 runserver
  6. Go to – http://localhost:8000/

We have created a Super User with username – admin and password – password


View Github