Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSV import export to the Members Model #296

Open
jsparmani opened this issue Sep 29, 2020 · 13 comments
Open

Add CSV import export to the Members Model #296

jsparmani opened this issue Sep 29, 2020 · 13 comments
Labels

Comments

@jsparmani
Copy link
Member

The feature should allow us to create members by importing a csv from the admin panel itself. There are already many libraries which can help out with this.

@HarshitVerma001
Copy link

I am not able to access the console to see the changes @jsparmani

@HarshitVerma001
Copy link

In the admin console, should I add my name to the database to access it?

@jsparmani
Copy link
Member Author

@HarshitVerma001 Viewing production data from your local setup of the project isn't possible. For experimenting you need to generate your own data.
Also, let me know if you are working on the issue and ETA, so that I assign it to you.

Note: One thing that needs to be figured out is how to accept images for members model from a csv
for eg. if its a link the system must be capable of downloading that image and storing it into its own media store.

@HarshitVerma001
Copy link

HarshitVerma001 commented Sep 30, 2020

Okay, you can assign it to me and I can work upon it.

@jsparmani
Copy link
Member Author

Okay, you can assign it to me and I can work upon it.

Okay, any ETA for this?

@HarshitVerma001
Copy link

I am learning side by side so 5th October if it is okay?

@jsparmani
Copy link
Member Author

I am learning side by side so 5th October if it is okay?

Sure, go ahead. You can use this issue thread for any doubts and help as well.

@jsparmani
Copy link
Member Author

Any updates to the work @HarshitVerma001?

@bughunter9
Copy link
Contributor

@jsparmani I was trying to solve this issue using these 2 resources :
https://stackoverflow.com/questions/18685223/how-to-export-django-model-data-into-csv-file
https://github.com/edcrewe/django-csvimport
But I am facing issues with the custom commands while importing the csv data back into the django models , and I preferred using the django-importcsv library over the django-adaptors one. Can you please tell a better way on how to import the data back ??

@bughunter9
Copy link
Contributor

@jsparmani I have tested the import export thing on my system and it works fine , the import and export buttons show up inside the member field inside the admin panel from where data transaction can happen.

@jsparmani
Copy link
Member Author

@jsparmani I have tested the import export thing on my system and it works fine , the import and export buttons show up inside the member field inside the admin panel from where data transaction can happen.

Okay, so how does import work for members model in case of images?

@raghavTinker
Copy link
Member

What if we create a form for members to upload their details and images and from there we can run an automation script that can send authenticated post requests to the DSC-TIET API to add the members.

@jsparmani
Copy link
Member Author

jsparmani commented Apr 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants