How to Create CSV File With Django
In this tutorial, I will explain to you how to Create CSV (Comma Separated Value) file with Django. We are going to use Python in-built CSV library which comes by default with Python. With this tutorial, you will be able to read write a CSV file and download it with Django. Source Code is also available on GitHub.
- Create a folder and put all the files inside it.
- Create a virtual environtment -
- Activate VirtualENV -
- Run requirements.txt -
pip3 install -r requirements.txt
- Run the Application -
python3 manage.py runserver
- Go to - http://localhost:8000/