Hi!

I think you've found the wrong mailing list for this post. This mailing
list is for discussing the development of Django itself, not for support
using Django. This means the discussions of bugs and features in Django
itself, rather than in your code using it. People on this list are unlikely
to answer your support query with their limited time and energy.

For support, please follow the "Getting Help" page:
https://docs.djangoproject.com/en/3.1/faq/help/ . This will help you find
people who are willing to support you, and to ask your question in a way
that makes it easy for them to answer.

Thanks for your understanding and all the best,

Adam

On Thu, 29 Apr 2021 at 10:22, 'Muhammad Asim Khaskheli' via Django
developers (Contributions to Django itself) <
django-developers@googlegroups.com> wrote:

> Hi,
>
> I wanted to ask how to load csv data into the model. What steps do we have
> to follow .
>
> I have made this function but how exactly to run this code because, python
> manage.py loaddata wont work.
>
> def import_data():
> with open('sample-dataset.csv') as f:
> reader = csv.reader(f)
> for row in reader:
> if row[0] != 'user_id':
> _, created = Funnel.objects.get_or_create(
> user_id=row[0],
> event=row[1],
> timestamp=row[2],
> session_id=row[3]
> )
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/ab4f4d9d-87b6-45e4-b490-1d665b1795can%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/ab4f4d9d-87b6-45e4-b490-1d665b1795can%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM3%2Bj%2Bz0giz2hGfNjg%3Dsi0MJUcyfEJZ%3DbUj8S4%2Bs0Muskw%40mail.gmail.com.
  • ... 'Muhammad Asim Khaskheli' via Django developers (Contributions to Django itself)
    • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
    • ... Franck Tchouanga
      • ... Franck Tchouanga
    • ... Philip Mutua

Reply via email to