Tutorial Link - http://studygyaan.com/django/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 -
virtualenv env
- Activate VirtualENV -
source env/bin/activate
- Run requirements.txt -
pip3 install -r requirements.txt
- Run the Application -
python3 manage.py runserver
- Go to - http://localhost:8000/