try the below way. Its simple
Writing custom django-admin commands | Django documentation | Django
|
|
| |
Writing custom django-admin commands | Django documentation | Django
|
|
|
Regards,
Amitesh
On Friday, 30 April, 2021, 08:28:07 pm IST, Derek
wrote:
Someone has
Someone has an example of doing just this:
https://arshovon.com/blog/django-custom-command/
On Thursday, 29 April 2021 at 19:39:36 UTC+2 Ryan Nowakowski wrote:
> Typically you would write a custom management command for this kind of
> thing:
>
> https://docs.djangoproject.com/en/3.2/howto/cust
you may use pandas for this
you can use it as follows:-
first install it
if not using python from anaconda environment!
pip install pandas
import pandas as pd
reader=pd.read_csv("sample-dataset.csv")
reader.head(3) # for viewing top 3 rows.
hope this may help you
-)-)
On Thursday, 29 April 2021
Typically you would write a custom management command for this kind of thing:
https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/
On April 29, 2021 11:05:29 AM CDT, 'Muhammad Asim Khaskheli' via Django users
wrote:
>
>Hi,
>
>I wanted to ask how to load CSV data into the mode
4 matches
Mail list logo