Basic Django Website Hangs on Apache 2.4.41 due to Pandas 1.0.1

9 views
Skip to first unread message

Siddharth Agarwal

unread,
Feb 24, 2020, 5:26:23 AM2/24/20
to Django users
Hello Everyone,

I have build a basic Website using Python 3.7 + Django 3.0.0 + MySQL 8.0.18 + Pandas 1.0.1. This site works very well using py manage.py runserver on my local environment.

However, as soon as I deploy it on Apache 2.4.41 configured on Windows 10 Server. The site starts giving 408 error. 

On further debugging I have observed that imports from pandas are the root cause of the issue. Please code from model.py for your reference - 

from django.db import models, connection

# from pandas import DataFrame
# from pandas import concat, to_datetime, to_numeric
# Un-commenting above two lines cause the issue

# Create your models here.
class ISMADates(models.Manager):
    def date_list(self):
        with connection.cursor() as cursor:
            cursor.execute("select date_id, date from master_date order by date_id desc LIMIT 10;")
            result_list = cursor.fetchall()
        # print(result_list)
        return result_list

However as per my understanding pandas should work seamlessly with Django. And this combination is quite widely used.

Please let me know how to proceed further.

Thanks and Regards,
Siddharth Agarwal

Nagaraju Singothu

unread,
Feb 25, 2020, 7:13:50 AM2/25/20
to django...@googlegroups.com
Dear Group members,

      i have a problem plz solve me ,terminal plus not working in my system.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bbeba4dc-d364-4e6b-a2fc-421afb4d942f%40googlegroups.com.
Screenshot (16).png
Reply all
Reply to author
Forward
0 new messages