developer-student-club-thapar / officialWebsite

The official website for DSC TIET official website made using Django and React
https://dsctiet.com
MIT License
25 stars 62 forks source link

Add CSV import export to the Members Model #296

Open jsparmani opened 4 years ago

jsparmani commented 4 years ago

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 commented 4 years ago

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

HarshitVerma001 commented 4 years ago

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

jsparmani commented 4 years ago

@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 commented 4 years ago

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

jsparmani commented 4 years ago

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

Okay, any ETA for this?

HarshitVerma001 commented 4 years ago

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

jsparmani commented 4 years ago

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 commented 4 years ago

Any updates to the work @HarshitVerma001?

bughunter9 commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

@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 commented 2 years ago

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 commented 2 years ago

Sounds good

On Thu, 28 Apr 2022 at 22:45, Raghav Sharma @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/developer-student-club-thapar/officialWebsite/issues/296#issuecomment-1112459330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ6VWE6XNB6UF7GIILBWHIDVHLBSRANCNFSM4R5J2U6A . You are receiving this because you were mentioned.Message ID: <developer-student-club-thapar/officialWebsite/issues/296/1112459330@ github.com>