Comments on: Import Data from Excel into Database using Django https://reactconf.org/import-data-from-excel-into-database-using-django/ Unveiling Tomorrow's Tech Today, Where Innovation Meets Insight Mon, 24 Jul 2023 08:32:30 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Abhijith https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1593 Mon, 24 Jul 2023 08:32:30 +0000 http://labpys.com/?p=269#comment-1593 after few debugging , it’s working , thank you for this blog

]]>
By: Abdul https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1591 Fri, 16 Jun 2023 21:47:44 +0000 http://labpys.com/?p=269#comment-1591 In reply to labpys.com.

It is still not working. Can you be specific as to where and how to update this on settings.py. Best regards

]]>
By: labpys.com https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1590 Thu, 01 Jun 2023 15:51:10 +0000 http://labpys.com/?p=269#comment-1590 In reply to Abdul.

STATIC_ROOT = os.path.join(BASE_DIR, “assets”)
Simply update this code in settings.py file

Thank you

]]>
By: Abdul https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1589 Thu, 01 Jun 2023 14:14:16 +0000 http://labpys.com/?p=269#comment-1589 Hi Team,
This code did not work for me. On which file do I update this lines of code:

1 import os
2 STATIC_ROOT =  os.path.join(BASE_DIR, "assets")

]]>
By: Mahesh kattale https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1588 Thu, 23 Mar 2023 13:12:27 +0000 http://labpys.com/?p=269#comment-1588 expected <class ‘openpyxl.styles.fills.Fill’> i got this issue can some one knows what is going on

]]>
By: nhat https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1587 Mon, 20 Mar 2023 08:16:48 +0000 http://labpys.com/?p=269#comment-1587 you can help me?

]]>
By: Julio del Aguila https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1586 Sat, 18 Feb 2023 12:10:39 +0000 http://labpys.com/?p=269#comment-1586 from tablib import Dataset
from .Resources import EmployeeResource
 
def Import_excel(request):
    if request.method == 'POST' :
        Employee =EmployeeResource()
        dataset = Dataset()
        new_employee = request.FILES['myfile']
# I needed to update the bellow line, then I worked well.
        dataset = dataset.load(new_employee.read())
        result = EmployeeResource.import_data(dataset,dry_run=True)
        if not result.has_errors():
            EmployeeResource.import_data(dataset,dry_run=False)       
    return render(request, 'Import_excel_db.html',{})

]]>
By: nikita https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1585 Thu, 22 Dec 2022 16:05:00 +0000 http://labpys.com/?p=269#comment-1585 In reply to sagar.

yes it 100% did.

]]>
By: Ankur https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1584 Fri, 09 Dec 2022 11:58:22 +0000 http://labpys.com/?p=269#comment-1584 In reply to sagar.

Will Try and let you know

]]>
By: sagar https://reactconf.org/import-data-from-excel-into-database-using-django/#comment-1583 Tue, 29 Nov 2022 16:07:16 +0000 http://labpys.com/?p=269#comment-1583 hey anyone ! Did this actually work ?

]]>