Dear Group members,
i have a problem plz solve me ,terminal plus not working in my system.
On Mon, Feb 24, 2020 at 3:57 PM Siddharth Agarwal <sk.agarwals@gmail.com> wrote:
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_listHowever 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
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+unsubscribe@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.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMyGuAaaanEGpxwyNpKbXPnV_qKtDEx4GPJ_1%2B8cuFAnXbDEkQ%40mail.gmail.com.
No comments:
Post a Comment